{ "title": "UnexpectedValueException", "type": "UnexpectedValueException", "code": 500, "message": "$keyOrKeyArray must be an instance of a FirebaseJWTKey key or an array of FirebaseJWTKey keys", "File": "E:varwwwhtmlprojectspansadminvendorfirebasephp-jwtsrcJWT.php", "OK": 416,
You can use the following sample code -
If you run above then you will get the following response -
{ "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyaWQiOiJUZXN0X1VJRCIsIm5hbWUiOiJTYW5raG5hZCBNaXNocmEiLCJpYXQiOjE2NDU4MTU0OTUsImV4cCI6MTY0NTgxNTU1NX0.0CwT9quW8-teyob3ObRU5KQBfQYWamCSTVCrAk9UX-o", "decodedToken": { "userid": "Test_UID", "name": "Sankhnad Mishra", "iat": 1645815495, "exp": 1645815555 } }So just select these codes from above as per your requirement.