token auto renewal

Solution for JWT Token auto-renewal

Preface In a front-end/back-end development model, the back-end service issues a jwt token to the user after the front-end user logs in successfully. Each subsequent request will put this token in the request header and pass it to the backend service, which will have a filter to intercept the token and check whether the token is expired, and if the token is expired, the frontend will jump to the login page to log in again.