How to properly implement JWT token rotation? #4056
Unanswered
mabaranowski
asked this question in
Help
Replies: 1 comment
-
Check #4076 If anyone stumbles across this problem in the future |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm using the credential provider with custom backend, and AccessToken & RefreshToken.
For testing purposes:
In [...nextAuth].js jwt callback i do check if I should refresh the token after 9min:
In _app.js I've got refetchInterval set to 10min:
The problem is:
To sum it up:
What am I missing here?
The docs here: https://next-auth.js.org/tutorials/refresh-token-rotation do not really help with refetchInterval.
Thanks you all the help.
Beta Was this translation helpful? Give feedback.
All reactions