Reputation: 1234
I am developing an API server with laravel and tymon/jwt-auth. In the test envirovment TTL - 1 min, TTL_REFRESH - 2 min. Don't understand how the following algoritm works:
TOKEN_EXPIRED
If after 1 and 2 steps try to refresh the token with not-expired TTL, token will be refreshed. But if we refresh it once after expired, after second time (with expired token) server will send to client TOKEN_EXPIRED
.
My question is why after the second token update with expired TTL, server not refreshes the token but send TOKEN_EXPIRED
?
Upvotes: 0
Views: 1001
Reputation: 21
I think refresh token has been invalidate after first use
you must use new refresh token to refresh your jwt token and get new one
Upvotes: 1