Replies: 2 comments 2 replies
-
[next-auth][error][OAUTH_CALLBACK_ERROR] Is this same happening with you! Not able to resolve it tried everything |
Beta Was this translation helpful? Give feedback.
-
I'm having the exact same issue. The log says:
jwt callback is called after that error, and it only happens on production. Turning on debug didn't return any useful information. This error happens randomly, and I can't figure out why. |
Beta Was this translation helpful? Give feedback.
-
If OAuth callback error throws 'invalid_grant' the sign-in flows (gets stuck at Google account select screen).
JWT callback is called even if that error happens.
how would I reproduce this error anyway to see if I get the error in the JWT callback somehow?
It happened once, lasted for ~2-3 hours after many tries, and solved itself afterward. and it has never happened again.
The main goal of the question/discussion is understanding how to handle this eventuality so the auth flow doesn't break if it happens, ie invalidating the session or the sort
I have implemented token rotation - is that enough to prevent this situation?
Beta Was this translation helpful? Give feedback.
All reactions