Next.js 15 Convex Auth unable to login with Google OAuth
Upgrading to the new auth/core resulted in the issue.
In convex logs I see - /api/auth/callback/google
error
'(void 0) is not a function
'
Works with version -
"@auth/core": "0.36.0",
Breaks when using upgrading to:
"@auth/core": "^0.37.0",
Only changes in code made were for next.js 15 to await the cookies(), convexAuthNextjsToken(), convexAuth.isAuthenticated().
No other changes were made, unsure if there is anything else I need to adjust.
Small edit only the auth/core breaks the google auth.
5 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!
Hi @SvZ ( > ^ ^)>, @auth/core later than 0.36.0 isn't currently supported, but should be in the next release.
Ok thank you for the info.
Just a small indication to fix the docs it suggest 0.37.0
that's our mistake, that change has landed in the docs but we haven't released the corresponding library verison