Musab
Musab17mo ago

Using NextAuth with Convex

How can I use this NextAuth.js (https://authjs.dev/) with Convex?
Auth.js
Authentication for the Web.
8 Replies
Musab
MusabOP17mo ago
@ballingt
Silver-Spy
Silver-Spy17mo ago
Better use Clerk for now as its simpler and easy to use
Indy
Indy17mo ago
We haven't built any high level support for authjs. It's likely possible to use, but would require manual integration work. If you just want to move quickly, I agree with @Silver-Spy you'll find Clerk + Convex a lot easier to use: https://docs.convex.dev/auth/clerk
Convex Clerk | Convex Developer Hub
Clerk is an authentication platform providing login via
Michal Srb
Michal Srb17mo ago
Hey @Musab @Web Dev Cody has an example repo with NextAuth here: https://github.com/webdevcody/next-auth-convex
GitHub
GitHub - webdevcody/next-auth-convex
Contribute to webdevcody/next-auth-convex development by creating an account on GitHub.
Web Dev Cody
Web Dev Cody17mo ago
^ and this was only for auth with google. I didn’t add support for other providers
Musab
MusabOP17mo ago
Ah I didn't notice. Thanks everyone
yarrichar
yarrichar16mo ago
Thankyou for this!
Michal Srb
Michal Srb9mo ago
We now have a guide for setting up Convex with NextAuth: https://stack.convex.dev/nextauth
Convex with Auth.js (NextAuth)
Learn how to use Auth.js with your Next.js server and Convex backend to build a full-featured authentication system.

Did you find this page helpful?