Next.js Discord

Discord Forum

[next-auth + google] can't login on production

Unanswered
Alligator mississippiensis posted this in #help-forum
Open in Discord
Alligator mississippiensisOP
[next-auth, next 12, google provider, vercel]

Logging-in works in dev, but no in production.
When I choose an email on the google widget, it redirects me to the login page.
There is no error to be seen, all network requests have 200 status,
however there's a session request which returns an empty object!

I was able to log my env vars successfully.
My URI is in this format: https://my-url-jet.vercel.app
And my redirect URI is in this format: https://my-url-jet.vercel.app/api/auth/callback/google

1 Reply

Alligator mississippiensisOP
up