WordPress at a glance
function is not described

WP_Session_Tokens::verify() public WP 4.0.0

Validates the given session token for authenticity and validity.

Checks that the given token is present and hasn't expired.

It's a method of the class: WP_Session_Tokens{}

No Hooks.

Return

true/false. Whether the token is valid for the user.

Usage

$WP_Session_Tokens = new WP_Session_Tokens();
$WP_Session_Tokens->verify( $token );
$token(string) (required)
Token to verify.

Changelog

Since 4.0.0 Introduced.

Code of WP_Session_Tokens::verify() WP 5.5.1

<?php
final public function verify( $token ) {
	$verifier = $this->hash_token( $token );
	return (bool) $this->get_session( $verifier );
}