
Auth.js
Open-source authentication for Next.js and other web frameworks
What is Auth.js?
Auth.js (formerly NextAuth.js) is an open-source library for adding OAuth, email and credential login to Next.js, SvelteKit, Express and other frameworks. It supports many providers and database adapters. The project is now maintained by the Better Auth team.
Best for: Next.js developers who want simple OAuth login without a hosted provider.
Pros
- +Free and widely used
- +Many OAuth providers built in
- +Database adapters for most ORMs
Cons
- −Fewer features than Better Auth (no orgs, limited 2FA)
- −Maintenance has moved to Better Auth, which is the recommended path for new projects
Auth.js pricing
Prices from authjs.dev, checked November 2026. Vendors change plans often, so confirm before buying.
Auth.js alternatives

Better Auth
Open-source, framework-agnostic authentication library for TypeScript
Open source
Clerk
Drop-in authentication and user management with prebuilt UI components
Free plan · from $20/mo billed annually ($25 monthly)
Supabase
Open-source Postgres backend with auth, storage, realtime and edge functions
Free plan · from $25/mo (Pro)
Auth0
PerkOkta's customer identity platform for B2C and B2B apps
Free plan · from $35/mo (B2C Essentials, 500 MAU)
WorkOS
Enterprise-ready auth: SSO, SCIM, audit logs and AuthKit
Free plan · from $125/mo per SSO connection
Stytch
Authentication and fraud prevention APIs for consumer and B2B apps
Free plan
Comparisons
Auth.js FAQ
Is Auth.js free?
Auth.js is open source and free to self-host.
What are the best Auth.js alternatives?
The best Auth.js alternatives for startups are Better Auth, Clerk, Supabase, Auth0 and WorkOS. Better Auth, Clerk and Supabase have a free plan.
Does Auth.js have a startup discount?
We haven't found a public startup program for Auth.js. Many vendors still offer discounts on request, and perk marketplaces sometimes include one.
Who is Auth.js best for?
Next.js developers who want simple OAuth login without a hosted provider.
More authentication and user management tools

Keycloak
Open-source identity and access management server
Open source
Ory
Open-source identity infrastructure: Kratos, Hydra, Keto and Ory Network
Open source
Zitadel
Open-source identity platform with multi-tenancy built in
Open source
SuperTokens
Open-source auth with prebuilt UI you can self-host or use managed
Open source · from $0.02/MAU (managed, beyond free)
Frontegg
User management and admin portal for B2B SaaS
Free plan
Logto
Open-source auth and identity for SaaS and AI apps
Open source