Auth.js vs Better Auth
Of the 422 makers' products we know the authentication of, 7 chose Better Auth (2%) and 0 Auth.js (0%). Among the 98 launched in 2026, Auth.js is in 0% and Better Auth in 0%, against 0% and 0% of those launched in 2024 or earlier.
Two library in your app options for authentication. When each fits, what it costs, who moves from one to the other, and what makers who chose it say.
Which fits you
- Existing Next.js apps built on NextAuth, and teams that want OAuth sign-in with users in their own database.
Use it whenYour app already uses NextAuth or Auth.js and works; you're maintaining it rather than choosing fresh.
Trade-offThe project is now part of Better Auth, which offers a migration guide; v5 has stayed in beta for a long time, and features like two-factor or organizations are yours to build.
- You want users in your own database and no per-user bill
Use it whenYou'd rather own the code than pay per user.
Trade-offYou host it and keep it patched; UI is yours to build.
At a glance
| Used by | No maker's product yet · 64 open-source projects | 7 makers' products · 102 open-source projects |
|---|---|---|
| Cost at default usagemonthly active users 10k MAU | — | $0/mo Self-hosted (open source) |
| Downloads | 5.8M/wk−9% vs npm | 8.3M/wk8× vs npm |
| Pricing | Free (open source). | Free (open source). |
| Free tier | Yes | Yes |
| Open source | Yes · self-hostable | Yes · self-hostable |
Which makers on your framework pick
Makers' products built with each framework that chose either one, for authentication.
| Framework | |||
|---|---|---|---|
| 0 | 5 | All 211 Next.js products' picks → |
New launches vs older products
A tool that came first has products from every year since, so its total runs ahead. Here is what products launched each year chose, as a share of those that made the authentication decision (by the year they launched on Product Hunt).
| Launched | Products | ||
|---|---|---|---|
| 2024 | 0% 0 | 0% 0 | 89 |
| 2025 | 0% 0 | 7% 7 | 105 |
| 2026 | 0% 0 | 0% 0 | 98 |
Cost as you grow
Both are $0 at every scale we price, up to 1M MAU — what you pay for is the servers you run them on.
The numbers, plan by plan
| Monthly active users | Auth.js | Better Auth |
|---|---|---|
| 100 | $0 Self-hosted (open source) | $0 Self-hosted (open source) |
| 1,000 | $0 Self-hosted (open source) | $0 Self-hosted (open source) |
| 5,000 | $0 Self-hosted (open source) | $0 Self-hosted (open source) |
| 10,000 | $0 Self-hosted (open source) | $0 Self-hosted (open source) |
| 25,000 | $0 Self-hosted (open source) | $0 Self-hosted (open source) |
| 50,000 | $0 Self-hosted (open source) | $0 Self-hosted (open source) |
| 100,000 | $0 Self-hosted (open source) | $0 Self-hosted (open source) |
| 250,000 | $0 Self-hosted (open source) | $0 Self-hosted (open source) |
| 1,000,000 | $0 Self-hosted (open source) | $0 Self-hosted (open source) |
From each vendor's pricing page: Auth.js, Better Auth.
What makers say
Makers on using it for authentication, from Product Hunt and Starter Story interviews, each linked to the source. Products with a page of their own and fuller notes first.
No maker quote about Auth.js for authentication yet.
Authentication is always a time sink, but not with better_auth. Simple, secure, and extendable. Got magic links and login flow done in under an hour.
Better-Auth gave us a clean, flexible auth layer with minimal code. Performance, adaptability, and dev-experience were all wins.
It came out of nowhere and became popular for a good reason - it's really good!
Loved and watch-outs
Themes that recur in makers' words and Hacker News comments, each linked to what it summarises.
- A library that keeps users and sessions in your own database, with no vendor dependency and no per-user fees. HNHN 2HN 3HN 4
- Plugins cover OAuth providers, magic links, RBAC, SSO and SAML, going well beyond Auth.js. HNHN 2HN 3PH
- Hackable and transparent, so custom flows such as iframe login work without fighting hidden internals. HNHN 2PH
- Built-in assumptions force hacks, such as OIDC providers without email or request-header-based admin scripts. HNHN 2
- Code quality felt rushed, with few tests and little logging, and audit logs need the managed service. HNHN 2
- Breaking changes appear in patch releases, and the OpenAPI spec gets little care for non-JS clients. HN
Who uses each
What makers pair each with
Neither quite right?
See the whole authentication decision →Questions
Auth.js or Better Auth: which do makers choose?
Of the 422 makers' products we know the authentication of, 7 chose Better Auth (2%) and 0 Auth.js (0%). Among the 98 launched in 2026, Auth.js is in 0% and Better Auth in 0%, against 0% and 0% of those launched in 2024 or earlier. Choose Auth.js if existing Next.js apps built on NextAuth, and teams that want OAuth sign-in with users in their own database; choose Better Auth if you want users in your own database and no per-user bill.
When should I pick Better Auth over Auth.js?
Pick Better Auth if: You want users in your own database and no per-user bill.
How do Auth.js and Better Auth compare in cost as you grow?
Both are $0 at every scale we price, up to 1M MAU — what you pay for is the servers you run them on. Cheapest usable plan at each scale, at list prices.

