jwt-auth icon indicating copy to clipboard operation
jwt-auth copied to clipboard

Token has expired and can no longer be refreshed

Open injectionsuccesfully opened this issue 3 years ago • 2 comments

I'm getting this error, I can't update the token. I think the problem is in the intermediate function (middleware). Should I protect the token update strategy? Message Token has expired and can no longer be refreshed Level ERROR UserId 6 Exception

   "class": "Tymon\\JWTAuth\\Exceptions\\TokenExpiredException",
   "message": "Token has expired and can no longer be refreshed",
   "code": 0,
   "file": "/var/www/app/vendor/tymon/jwt-auth/src/Claims/IssuedAt.php:59",
   "trace": [
       "/var/www/app/vendor/tymon/jwt-auth/src/Claims/Collection.php:61",

injectionsuccesfully avatar Dec 11 '21 09:12 injectionsuccesfully

For example, I created a token, and I can't update it the next day. Although the configuration files are configured correctly (to update and receive tokens), you can update the token within two weeks

injectionsuccesfully avatar Dec 11 '21 09:12 injectionsuccesfully

Hello! I cannot refresh the token once it has expired. I can only do it before expiration. The response from the server is 401, not authorized.

'ttl' => env('JWT_TTL', 60), 'refresh_ttl' => env('JWT_REFRESH_TTL', 20160),

The response is 401, Unauthorized.

HugoBravo avatar Jan 06 '22 15:01 HugoBravo