[OAUTH_CALLBACK_HANDLER_ERROR] for Google: "payload must be an object" #3640
-
Trying to setup Google auth with Next-Auth. Everything works locally - Google accounts are able to register and login. But once I deploy on Vercel, Google accounts are not able to register or login. On the frontend, I get a "Try signing in with a different account." error message. In the backend logs, it starts off correctly:
But then I get this error:
Which is very confusing for a few reasons:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The error was on my backend API side (as the Next-Auth error message suggested). More specifically, I was jusing django-allauth. This thread solved it for me: https://stackoverflow.com/a/58696288/ |
Beta Was this translation helpful? Give feedback.
The error was on my backend API side (as the Next-Auth error message suggested).
More specifically, I was jusing django-allauth. This thread solved it for me: https://stackoverflow.com/a/58696288/