You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do you handle refresh token with custom jwt token? I have been looking for ways to implement refresh token with next-auth but haven't found anything useful yet. Do you have any suggestion on how to handle refresh tokens once the original token expires?
I am hoping it could be implemented in the jwt/session callback in next-auth as these are called every time the user accesses a session. But how do I send my original refresh token to the client which would last longer than the access token and then once the access token expires I could just verify the refresh token and generate new tokens?
Any kind of help would be great.
The text was updated successfully, but these errors were encountered:
How do you handle refresh token with custom jwt token? I have been looking for ways to implement refresh token with next-auth but haven't found anything useful yet. Do you have any suggestion on how to handle refresh tokens once the original token expires?
I am hoping it could be implemented in the jwt/session callback in next-auth as these are called every time the user accesses a session. But how do I send my original refresh token to the client which would last longer than the access token and then once the access token expires I could just verify the refresh token and generate new tokens?
Any kind of help would be great.
The text was updated successfully, but these errors were encountered: