Skip to content

Refresh token grant errors with redis operational store #144

Discussion options

You must be logged in to vote

We probably figured out the root cause of the issue. It was happening when same user opens the client in 2 tabs in same browser instance. i.e. if user opens tab 01, Access token A1 and Refresh Token R1 was issued to it. When he opened tab 02, refresh token R1 was being sent to get new Access token A2 and Refresh Token R2. Now, when tab 01 access token A1 was nearing expiry, it was making a call with same refresh token R1 to get new tokens. However, since we had "RefreshTokenUsage" set to OneTime, that token was already consumed. Hence, we were getting "invalid_grant" errors on first tab.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by maartenba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants