Open ndhalvad opened 3 years ago
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
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?