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?
2 Replies
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
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,