hugoH
Convex Community2y ago
2 replies
hugo

Google OAuth used in Vercel production got failed to authenticate

Hi, I am currently using this repo: https://github.com/get-convex/convex-nextauth-template to implement Google OAuth instead of Github for my application. When i test it in localhost, it works really fine. But when i deploy it to Vercel in production, I got this error: Failed to authenticate: "Could not verify token claim", check your server auth config, and this leads to all the Uncaught Error: Not authenticated errors in Convex. The data of user is still created in the users and accounts table, as well as a new session is created to the sessions tables. How can i solve this?
Thank you
GitHub
Example of using Auth.js (NextAuth) with Convex. Contribute to get-convex/convex-nextauth-template development by creating an account on GitHub.
GitHub - get-convex/convex-nextauth-template: Example of using Auth...
Was this page helpful?