preciousKeyz's avatar

Extend JWT Auth Token Expiry into the future

I am building a backend to be consumed into a Web & Mobile App and wouldn't want users kicked off every time token expires. I want to extend token expiry each time user hits the server with the token in a request. Please help me with an idea of how to do this.

0 likes
1 reply
tykus's avatar

You should have a refresh token stored alongside the access token, which you can use to generate a new access token whenever the current access token is expiring, or has expired.

Please or to participate in this conversation.