
Auth.js (NextAuth.js)
Free open-source authentication library for Next.js and other web frameworks, now part of Better Auth.
- Verified facts
- 4 of 4
- Alternatives ranked
- 4
- Approved reviews
- 0
- Visits sent from here
- 0
Auth.js (NextAuth.js) has been acquired. The Auth.js project is now part of Better Auth, which offers a migration guide for existing apps.
About Auth.js (NextAuth.js)
Auth.js, known for years as NextAuth.js, is an open-source library that adds sign-in to JavaScript web apps. It became the default choice for Next.js projects thanks to built-in support for dozens of OAuth providers, magic-link email sign-in, credentials and optional WebAuthn, with sessions stored in encrypted cookies or a database through adapters for Prisma, Drizzle, Supabase, Firebase and others. Framework packages extend it to SvelteKit, Qwik and Express. It is ISC licensed, completely free and runs inside your own app. The project is now part of Better Auth, and its documentation offers a migration guide to Better Auth, so new projects are generally better served there while existing Auth.js apps keep working. Its limitations have always been around features beyond basic sign-in: there is no built-in MFA, organisations or admin UI, and credentials-based login is deliberately limited.
Best for: Existing Next.js apps that already rely on NextAuth for OAuth sign-in.
Pros and cons
What works
- Free and open source with many OAuth providers built in
- Runs inside your app with database adapters
- Large body of tutorials and examples
Why people leave
- No built-in MFA, organisations or admin UI
- Project now folded into Better Auth
- Credentials login is intentionally limited
Top Auth.js (NextAuth.js) alternatives
See all 4- 1
Better Auth66.5The project Auth.js joined, with MFA, organisations and passkeys via plugins.
- 2ClClerk62.6
Hosted, with prebuilt UI and MFA for Next.js apps that outgrew a basic library.
- 3
SuperTokens59.6Open-source with sessions, MFA and prebuilt UI, self-hosted or cloud.
- 4
Auth057.2Managed service if you want to stop maintaining auth code yourself.
Why people left Auth.js (NextAuth.js)
In reviewers' own words, from reviews of the apps they moved to. These are their opinions, not ours.
No switching stories yet. If you moved away from Auth.js (NextAuth.js), review the app you switched to and tell us why.
Reviews
No approved reviews yet. How we verify reviewers
Write a review of Auth.js (NextAuth.js)
Auth.js (NextAuth.js): common questions
Is Auth.js (NextAuth.js) free?
Yes. Auth.js (NextAuth.js) is free, open-source software that you can host yourself.
Is Auth.js (NextAuth.js) open source?
Yes. The source code is on GitHub at nextauthjs/next-auth. You can also run it on your own server.
What platforms does Auth.js (NextAuth.js) run on?
Auth.js (NextAuth.js) is available for Web and Self-hosted.
What are the best alternatives to Auth.js (NextAuth.js)?
The highest-ranked Auth.js (NextAuth.js) alternatives right now are Better Auth, Clerk and SuperTokens. See the full ranked list for pricing, platforms and verified facts.