# Better Auth: 8.5 out of 10

A strong pick. 1st of 10 in [Authentication libraries](https://elestia.ai/opensource/auth/index.md).

Better Auth is a self-hosted, framework-agnostic TypeScript auth framework. It stores users and sessions in your own database and adds 2FA, passkeys, organizations, SSO and more through plugins. Today it is the strongest default for new full-stack TypeScript apps, but its fast release pace has brought a run of serious plugin advisories and one painful 1.x schema break.

**Best for:** TypeScript teams that want full-featured auth in their own database and their own code, on any framework or runtime.

## Scores

- **Overall: 8.5** (likely 7.4 to 9.2)
  - Claude Opus 5.5 (8.5): Among full auth frameworks, it is the clear pick for a new TypeScript app today. Auth.js is in maintenance mode, Passport has not had a commit in a year, and Lucia is deprecated. jose, jsonwebtoken and openid-client are lower-level building blocks. It is held back from a 9+ by its advisory record and by the 1.7 migration break, so teams should pin versions, follow advisories and enable only the plugins they need.
  - GPT-6.2 Sol (8.5): Better Auth is the strongest full-stack pick in this group for a new app that owns its sign-in and sessions. It covers more of the account lifecycle than Auth.js, ships actively with a funded core team, and has credible production adopters. For a service that only verifies JWTs, jose is a better fit. Recent security fixes and upgrade work keep Better Auth below 9 and leave room for different experiences across plugin configurations.
- **Needed by many: 7.2** (likely 6.1 to 8.2)
  - Claude Opus 5.5 (7.0): Most web apps that have users need sign-in and sessions, and Better Auth works across frameworks and runtimes. It is aimed at full-stack TypeScript apps that own their database, not at projects that only need JWT checks or that use a hosted identity provider. That makes it narrower than all of auth, but still a large group.
  - GPT-6.2 Sol (7.3): Sign-in and sessions are common needs for teams building web apps with user accounts. Better Auth works with Next.js, SvelteKit, Nuxt, Express, Cloudflare Workers, and Expo, so its audience extends across frameworks and runtimes. The range reflects how many teams use managed identity, need only token verification, or build apps without accounts.
- **Helps a lot: 8.3** (likely 7.3 to 9.3)
  - Claude Opus 5.5 (8.0): No library in this group covers more: it has the widest feature set through plugins, strong TypeScript inference and in-code configuration. Users praise the developer experience and compare it to Django auth for TypeScript. Its limits: there is no UI, there are framework gotchas such as Next.js cookies in Server Actions, and several plugin flows had serious logic bugs this year. Some HN users also found the early code rushed.
  - GPT-6.2 Sol (8.6): Version 1.7.27 combines typed client and server APIs, password and social login, database-backed or stateless sessions, and plugins for passkeys, organizations, and JWTs. The examples and dedicated agent docs make common setups easier to implement. Teams still build their own sign-in UI, and independent evidence on throughput and the correctness of agent-generated integrations is limited.
- **Holds up over time: 8.3** (likely 7.1 to 9.3)
  - Claude Opus 5.5 (8.0): Activity is very high: 2,967 commits, 181 releases and over 1,000 contributors, and Vercel acquired the team in July 2026 with a pledge to keep it open source and framework-agnostic. The ecosystem is moving toward it, as Auth.js now sits under the same team. Two things hold the score back: the 1.7 schema break, which the maintainers have publicly promised to prevent, and the risk that the roadmap shifts toward Vercel's agent-identity work.
  - GPT-6.2 Sol (8.5): Vercel brought on the core team, and Better Auth is shipping more actively than any peer in the bundle. The repository recorded 2,967 commits and npm published 94 versions in the past year, including backports for the 1.6 line. Hundreds of open issues and pull requests, a recent schema reversal in a patch, and limited visibility into release permissions keep the two-year forecast uncertain.
- **Used widely: 7.9** (likely 6.4 to 8.8)
  - Claude Opus 5.5 (8.5): Downloads grew about 42x in a year (76M versus 1.8M per 4 weeks), against a median of 4.1x. It now has twice the next-auth downloads and the most stars in the category. Some of this volume comes from CI and from bundling in starters. There is no dependents count, so the true number of projects is uncertain, but the trend is clearly the strongest in the category.
  - GPT-6.2 Sol (7.2): Four-week npm downloads rose from 1.83 million to 76.1 million, about 42 times year over year against the catalog median of 4.1 times. That is the fastest growth in the bundle, ahead of Auth.js and Passport, and Better Auth also leads these peers in stars and repository-linked Bluesky posts. Build servers and downstream installs inflate the volume, while the missing ecosyste.ms count and npm's narrower count of 956 dependent packages leave the number of projects choosing it uncertain.
- **Vouched for: 7.8** (likely 6.6 to 8.8)
  - Claude Opus 5.5 (7.5): Vercel bought it and offers it in Vercel Connect, the Auth.js maintainers handed their project to it, and YC and Peak XV funded it. Independent guides such as LogRocket name it the default for new self-hosted Next.js apps, and HN users describe moving to it from Clerk and Supabase. Survey satisfaction data is missing, and most write-ups are blogs rather than production case studies.
  - GPT-6.2 Sol (8.0): Val Town reports moving production sign-in and sessions to Better Auth, Dokploy uses it for sign-in, and Convex maintains an integration. An independent comparison found broader documented capabilities than Auth.js, and users describe straightforward setup alongside gaps in logging. The surveys reviewed provide no Better Auth satisfaction score, and the comparison measured documented features, so confidence about long-term production experience is lower.
- **Safe: 5.6** (likely 4.4 to 7.1)
  - Claude Opus 5.5 (5.0): There were 26 advisories in 24 months. In October 2026 they included a critical account takeover via magic-link/OAuth state and a high-severity OAuth Proxy sign-in-as-another-user bug, and pre-account hijacking followed in July. Fixes shipped quickly (1.7.7) with clear mitigations and public disclosure. Still, the rate of account-takeover bugs in an auth library is a real concern. There is no Scorecard, it has 17 dependencies, and the licence is MIT.
  - GPT-6.2 Sol (6.2): The critical Magic Link issue had a fix in 1.7.7, and the November disclosure shipped fixes for 12 advisories in 1.7.16, including a critical Expo issue. Some affected deployments also needed secret rotation or data cleanup. The MIT license and automated GitHub Actions publishing with OIDC are positives. Seventeen direct dependencies, repeated serious flaws, and limited visibility into publisher access and OpenSSF checks keep the range wide.

## Good

- Covers email/password, social OAuth, magic links, passkeys, 2FA, organizations and SSO in one library, with typed plugins.
- Runs inside your app against your own database through Drizzle, Prisma or Kysely adapters, with no per-user cost.
- Very active: 181 releases and almost 3,000 commits in the last year, and its core team is now employed by Vercel.
- Auth.js maintenance moved to the same team, and guides now point new Next.js projects to Better Auth.

## Bad

- 26 advisories in two years, including a critical magic-link/OAuth-state account takeover in October 2026.
- Release 1.7 forced an unplanned core-table migration within 1.x that broke sign-ins for some users.
- You build all sign-in and sign-up UI yourself, which takes days compared with minutes on hosted services like Clerk.
- The rapid release pace means frequent upgrades, and all @better-auth/* packages must move in lockstep.

## The numbers

- Downloads, 4 weeks: 76M
- In a year: ×42
- GitHub stars: 31k
- Commits, 12 months: 3k
- Last npm release: Nov 2026
- Advisories, 24 months: 26
- Licence: MIT
- GitHub: https://github.com/better-auth/better-auth
- npm: https://www.npmjs.com/package/better-auth

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
