You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing Case:
Use inserted wrong structured token test(Created using correct secret)
Actual Structure of token is: 'eyJ0eXAiOiJKV1Qi...'
Testing with wrong structure: 'yJ0eXAiOiJKV1Qi...'
Testing Code[Middleware]: if (!JWTAuth::decode($token)) {}
Getting Error: Tymon\JWTAuth\Exceptions\TokenInvalidException: Could not decode token: Error while decoding to JSON: Syntax error in file /var/www/html/*****/vendor/tymon/jwt-auth/src/Providers/JWT/Lcobucci.php on line 133
Should respond the actual error message rather to tell issue at line.....etc
Actual behaviour
Tymon\JWTAuth\Exceptions\TokenInvalidException: Could not decode token: Error while decoding to JSON: Syntax error in file /var/www/html/*****/vendor/tymon/jwt-auth/src/Providers/JWT/Lcobucci.php on line 133
Is this something missing OR can handle the same with another option?
The text was updated successfully, but these errors were encountered:
Subject of the issue
Testing Case:
Use inserted wrong structured token test(Created using correct secret)
Actual Structure of token is: 'eyJ0eXAiOiJKV1Qi...'
Testing with wrong structure: 'yJ0eXAiOiJKV1Qi...'
Testing Code[Middleware]: if (!JWTAuth::decode($token)) {}
Getting Error:
Tymon\JWTAuth\Exceptions\TokenInvalidException: Could not decode token: Error while decoding to JSON: Syntax error in file /var/www/html/*****/vendor/tymon/jwt-auth/src/Providers/JWT/Lcobucci.php on line 133
Testing environment
| Framework | Laravel / Lumen
| Framework version | 7.x
Expected behaviour
Should respond the actual error message rather to tell issue at line.....etc
Actual behaviour
Tymon\JWTAuth\Exceptions\TokenInvalidException: Could not decode token: Error while decoding to JSON: Syntax error in file /var/www/html/*****/vendor/tymon/jwt-auth/src/Providers/JWT/Lcobucci.php on line 133
Is this something missing OR can handle the same with another option?
The text was updated successfully, but these errors were encountered: