Musab
Musab2y 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
MusabOP2y ago
@ballingt
Silver-Spy
Silver-Spy2y ago
Better use Clerk for now as its simpler and easy to use
Indy
Indy2y 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 Srb2y 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 Cody2y ago
^ and this was only for auth with google. I didn’t add support for other providers
Musab
MusabOP2y ago
Ah I didn't notice. Thanks everyone
yarrichar
yarrichar2y ago
Thankyou for this!
Michal Srb
Michal Srb12mo 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?