N
NextAuth.js (Auth.js)
Open-source authentication for Next.js
Open Sourceauthnext.jsopen-sourceself-hosted
Overview
Auth.js (formerly NextAuth.js) is a complete open-source authentication solution for web applications. Supports dozens of providers, database adapters, and JWT/session strategies.
Key Features
- ✓50+ OAuth providers
- ✓Database adapters (Prisma, Drizzle, etc.)
- ✓JWT & database sessions
- ✓Passwordless / magic link
- ✓Callbacks & events
- ✓TypeScript support
Pros
- +Completely free and open source
- +Huge provider ecosystem
- +Full control over data
Cons
- −Steeper learning curve
- −No pre-built UI components
- −v5 migration can be complex
Alternatives to NextAuth.js (Auth.js)
C
Clerk
freemiumDrop-in authentication and user management
authuser-managementnext.js
From $25/mo
S
Supabase Auth
freemiumOpen-source authentication built into Supabase
authsupabaseopen-source
From $25/mo
L
Lucia
Open SourceLightweight, session-based auth library
authlightweightopen-source
A
Auth0
freemiumEnterprise-grade identity platform
authenterpriseidentity
From $35/mo