$0
/ month
Use the libraryin your app and own the surrounding infrastructure.
- OAuthand session primitives
- Framework-oriented integration patterns
- No hosted user-management product included
Tool Review
Open-source authentication toolkit formerly known as NextAuth.js, now maintained under the Better Auth umbrella. Worth considering when you want more direct control over auth wiring and are comfortable owning the implementation details.
Developers who want open-source, framework-level auth control instead of a polished hosted identity product.
Pricing
Auth.js itself is open source, but self-owned auth is never truly free. Budget engineering time, provider setup, email delivery, databasesessions, and long-term maintenance.
$0
/ month
Use the libraryin your app and own the surrounding infrastructure.
Capabilities
Comparison-friendly facts
Control
High. You keep more of the auth behavior inside your application layer.
Beginner fit
Weak compared with Clerk or Supabase. More decisions land on you.
Hosted UI
No polished hosted account product. You buildor compose more of the user experience yourself.
Project status
Now part of Better Auth, which makes Better Auth the stronger greenfield comparison for many teams.
AI builder fit
Mixed. Agents can wire examples, but auth callbacks and session details need careful review.
Recent updates
Auth.js is now maintained by the Better Auth team, and the official GitHub discussion points many new or refreshed projects toward Better Auth as the forward-looking path.
Source →Better Auth announced that Auth.js, formerly NextAuth.js, would be maintained and overseen by the Better Auth team.
Source →Auth.js is appealing when your instinct is “I want auth, but I also want to understand and control where the pieces live.”
That can be a feature, not a bug, if you already have a strong application architecture. It is just not the path of least resistance for newer builders.
For the Add Authentication guide, Auth.js now needs a louder caveat than it did a few years ago.
Auth.js joined Better Auth in 2025, and the forward-looking story for new projects is more complicated. If you are starting fresh, you should compare:
That does not make Auth.js useless. It just makes it less of a beginner default.
Auth.js can still be reasonable when:
That control is valuable when you know what you are doing.
Auth.js is the “most control” authentication pick, not the “least pain” pick.
If you are newer to auth, start with Clerk or Supabase. If you are experienced and want to own more of the stack, Auth.js can still belong in the conversation, but it should not be chosen casually.
| authjs.dev | Auth.js | |
| better-auth.com | Auth.js is now part of Better Auth | |
| github.com | Official GitHub discussion | |
| better-auth.com | Migrating from Auth.js to Better Auth |
Related Paths

You need logins, sessions, and account recovery without accidentally turning your weekend into a security incident.

You don’t need a full security department for your vibe-coded side project, but you do need to fix the obvious stuff before bots discover it for you.
Hosted authentication and user management for modern web apps. The polished default when you want sign-in, account management, organizations, and session handling to feel real quickly.
The Postgres development platform: database, auth, storage, realtime, and edge functions in one dashboard. A Firebase-like developer experience powered by Postgres and open source building blocks.
Google’s app development platform for building, shipping, and monitoring web and mobile apps. Batteries-included backend services: databases, auth, hosting, storage, functions, analytics, crash reporting, and more.