Skip to content
Discussion options

You must be logged in to vote

Hi @skoruba,
Apologies for the confusion earlier. After deeper investigation, we’ve confirmed this was not related to NextAuth.js.

The root cause was actually in our own implementation. In certain scenarios, a method responsible for initiating the authorization request was being called twice on the same page load. As a result:

Two different code_challenge values were generated

Two different code_verifier values were generated

The requests overlapped and eventually conflicted at the token exchange stage

Because of this race/duplication, the code_verifier sent during the token request did not always match the originally associated code_challenge, which caused the intermittent:

"Transformed …

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@AndersAbel
Comment options

@emanuelxm
Comment options

Comment options

You must be logged in to vote
5 replies
@jimeshmandaliyamarutitech
Comment options

@jimeshmandaliyamarutitech
Comment options

@skoruba
Comment options

@rohanvachheta
Comment options

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
6 participants