Drizzle NextAuth not working

Hi, i have successfully configured T3 with Drizzle and Supabase, db is up and running etc. BUT whichever NextAuth proivder i try to implement, i keep getting errors. On paper i should have everything configured as it's supposed to be. Does anyone have any tips? So for example GitHub provider successfully links the account to the app, i get the e-mail but upon the redirect after authentication, I am getting this screen (attachment 1) and this console output (attachment 2) has anyone successfully implemented DrizzleAdapter with NextAuth yet? I noticed the docs site for Drizzle is not up yet, so it is still experimental/not stable? should I rather go with Prisma instead?
No description
No description
2 Replies
Jacob
Jacob13mo ago
So something I found is you might need to add this: allowDangerousEmailAccountLinking: true into the nextauth configuration under your provider and that might fix your issue
GitHubProvider({
clientId: env.GITHUB_CLIENT_ID,
clientSecret: env.GITHUB_CLIENT_SECRET,
allowDangerousEmailAccountLinking: true,
}),
GitHubProvider({
clientId: env.GITHUB_CLIENT_ID,
clientSecret: env.GITHUB_CLIENT_SECRET,
allowDangerousEmailAccountLinking: true,
}),
AldiBoi
AldiBoi13mo ago
Its most likely that since the initial setup in the db finished adding things like your discord and email, but not the Oauth session. It happened to me, the other day. Try using the drizzle studio ro reset your db and try again,
Want results from more Discord servers?
Add your server