emarref/jwt

How to verify signature?

Closed this issue · 0 comments

How to use below code in function?

try {
$jwt->verify($token, $context);
} catch (Emarref\Jwt\Exception\VerificationException $e) {
return $e->getMessage();
}

I want to get boolean value using $jwt->verify($token, $context), but how to do that?
Also, how to ignore token expiry when verifying signature with secret key?

Thanks :)