Getting drizzle working with next-auth
Has anyone gotten drizzle working with next-auth?
Here's the implementation that I've been using: https://github.com/c-karaolis/drizzle-next-auth-adapter-postgres/blob/main/src/lib/drizzle-next-auth-postgres-adapter.ts
From what I can see I have all of my callback urls set up correctly, all environment vars that I need, and nothing else that is barring it from working that I can remember from previous times of setting it up.
Maybe I'm missing something obvious here, but I'm really lost as to what is going on.
I keep running into this error:
GitHub
drizzle-next-auth-adapter-postgres/src/lib/drizzle-next-auth-postgr...
A custom drizzle orm adapter for NextAuth.js. Contribute to c-karaolis/drizzle-next-auth-adapter-postgres development by creating an account on GitHub.
2 Replies
there is an implementation for this in the create-t3-app repo which does this: https://github.com/t3-oss/create-t3-app/blob/drizzle/cli/template/extras/src/server/auth/with-drizzle.ts
GitHub
create-t3-app/cli/template/extras/src/server/auth/with-drizzle.ts a...
The best way to start a full-stack, typesafe Next.js app - create-t3-app/cli/template/extras/src/server/auth/with-drizzle.ts at drizzle · t3-oss/create-t3-app
work, that looks nice
I'm running into issues with the
getServerAuthSession
wrapper that they provided, odd