src/Token.php
private static function validateWithExpiration(Parse $parse): bool
    {
        try {
            $parse->validate()
                ->validateExpiration();
        } catch (ValidateException $e) {
            if (in_array($e->getCode(), [1, 2, 3, 4], true)) {
                return false;
            }
        }

        return true;
    }
private static function validateWithExpiration(Parse $parse): bool
    {
        try {
            $parse->validate()
                ->validateExpiration();
        } catch (ValidateException $e) {
            if (in_array($e->getCode(), [1, 2, 3, 4], true)) {
                return false;
            }
        }

        return true;
    }
private static function validateWithExpiration ( Parse $ parse ) : bool { try { $ parse -> validate ( ) -> validateExpiration ( ) ; } catch ( ValidateException $ e ) { if ( in_array ( $ e -> getCode ( ) , [ 1 , 2 , 3 , 4 ] , true ) ) { return false ; } } return true ; }
Run standard validation and expiration validation against the token.
Will not return false if the expiration claim is not set.

@param Parse $parse
@return bool
Run standard validation and expiration validation against the token . Will not return false if the expiration claim is not set .