Issue with Google Login in Production
Hi everyone, I’m experiencing an issue with Google login in my production environment.
Tech Stack:
- Next.js: 15.1
- Convex: 1.17.4
- @auth/core: 0.36.0 (downgraded from 0.37.0, but the issue persists)
- @convex-dev/auth: 0.0.78
Issue:
- Using Password, GitHub, and Google providers.
- All work fine in local dev, but in production, only Google login fails.
- Google users aren’t registered in Convex DB.
Relevant Code:
convex/auth.ts
middleware.ts
Troubleshooting:
- Downgraded @auth/core 0.37.0 to 0.36.0 – no effect.
- Verified OAuth credentials & callback URLs – all correct.
Anyone faced a similar issue? Could this be due to env variables, CORS, or OAuth config?
Thanks in advance! 🚀
2 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
Say more about the error, what happens? Are there error messages in the convex logs or in the browser? See this on debugging https://labs.convex.dev/auth/debugging
Debugging - Convex Auth
Authentication library for your Convex backend