tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.24k stars 1.55k forks source link

Status code 500 upon no token, invalid token or Expired token #1066

Open jeswinder-s opened 7 years ago

jeswinder-s commented 7 years ago

Using jwt with lumen 5.1

facing issue while invalid token or expired token. App returns status code 500 server error. tried to make middleware GetUserfromtoken, but still getting error

message": "The token could not be parsed from the request", "status_code": 500, "debug": { "line": 204, "file": "/var/www/staging/aaa/vendor/tymon/jwt-auth/src/JWTAuth.php", "class": "Tymon\JWTAuth\Exceptions\JWTException",

&

"message": "Could not decode token: The token \"<<>\" is an invalid JWS", "status_code": 500, "debug": { "line": 67, "file": "/var/www/staging/aa/vendor/tymon/jwt-auth/src/Providers/JWT/NamshiAdapter.php", "class": "Tymon\JWTAuth\Exceptions\TokenInvalidException",

ashishtz commented 5 years ago

have you found any solution?