OAuthCreateAccount error #6026
-
I am using Planetscale, the Prisma Adapter, and Vercel. Whenever I try to sign in I receive a "Try signing in with a different account." message. The url then looks like this: I've set the callback url in my GitHub app to Here is the schema. I just followed the prisma adapter documentation in creating it. I don't have NEXTAUTH_URL set at all in Vercel re: #5624 I don't have backticks on the DATABASE_URL in Vercel re: #5127 This link says that the OAuthCreateAccount error is due to a failure in creating the user in the database. I can't figure out why this is failing. The full repo is public if that helps: repo |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Got it working. Had some issues changes I made to the schema. |
Beta Was this translation helpful? Give feedback.
-
i have also same error i use postgres database and prisma and i also got it |
Beta Was this translation helpful? Give feedback.
-
import { NextAuthOptions } from "next-auth"; const authOptions: NextAuthOptions = {
} export default authOptions; |
Beta Was this translation helpful? Give feedback.
Got it working. Had some issues changes I made to the schema.