JWT token rotation handling failed token refresh #2653
Unanswered
jacklimwenjie
asked this question in
Help
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been reading the documentation on JWT token rotation
I want to change the handling for failed token refresh scenario - instead of redirecting the user to the login page when the token refresh failed, I want to sign out the user so that the user session is cleared, so I have changed the function call on
signIn
tosignOut
.However, the
session
object is still intact aftersignOut
is called, causing an infinite loop onsignOut
.Not sure if I missed anything to properly clear the
session
object.Beta Was this translation helpful? Give feedback.
All reactions