I am implementing jwt with Spring Boot. We have created a structure in which a user who has logged in once has the issued token value and sends the token value when logging in again. The expiration time is set to one day (86400 seconds).
ExpiredJwtException io.jsonwebtoken.ExpiredJwtException: JWT expired at 2021-11-21T04:25:31Z. Current time: 2021-11-22T03:45:58Z, a difference of 84027224 milliseconds. Allowed clock skew: 0 milliseconds.
The above exception was thrown for an expired token. Since this token has expired, I want to refresh the token to issue a new token to the user. What should I do?