Issue Deploying Next.js with Auth.js (Google Auth) and Prisma Adapter (MongoDB) on Cloudflare Workers #12971
Unanswered
raksmeycoding
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Before integrating Auth.js, my application was working normally. However, after adding Auth.js with the Prisma adapter and MongoDB, I encountered an issue when deploying to Cloudflare Workers.
The problem:
When I click "Login with Google", I am redirected to enter my email as expected.
After successfully authenticating with Google, I am redirected back to the callback endpoint.
At this point, an error is displayed, and the login fails.
Here are the screenshots of the error I encountered:



I would really appreciate it if someone could help guide me or explain what’s going wrong. I’m very curious to understand the root cause and how to fix it.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions