jwt-auth
jwt-auth copied to clipboard
Token has expired and can no longer be refreshed
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",
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
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.