# better-auth

> The most comprehensive authentication framework for TypeScript.

Latest version **1.7.17** (published 2026-11-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install better-auth
pnpm add better-auth
yarn add better-auth
bun add better-auth
```

## Health

**Score 60/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score; popular repo.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.7.17 |
| Published | 2026-11-04 |
| First published | 2024-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 30500 |
| Maintainers | bekacru |
| Keywords | auth, oauth, oidc, 2fa, social, security, typescript, nextjs |

## Links

- npm: https://www.npmjs.com/package/better-auth
- Repository: https://github.com/better-auth/better-auth
- Homepage: https://better-auth.com
- npm.io page: https://npm.io/package/better-auth

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.7.17 (latest) — 2026-11-04
- 1.8.0-beta.5 (beta) — 2026-11-03
- 1.6.34 (release-1.6) — 2026-11-01
- 1.7.0-rc.6 (rc) — 2026-08-14
- 1.4.22 (release-1.4) — 2026-03-16
- 1.0.0-canary.14 (canary) — 2024-11-22
- 0.8.7-beta.5 (next) — 2024-11-19
- 0.0.2-alpha.3 (alpha) — 2024-05-21
- 1.7.16 — 2026-11-03
- 1.8.0-beta.4 — 2026-11-01
- 1.7.15 — 2026-11-01
- 1.8.0-beta.3 — 2026-10-27
- 1.7.14 — 2026-10-26
- 1.7.13 — 2026-10-25
- 1.8.0-beta.2 — 2026-10-22
- … 937 more at https://npm.io/package/better-auth/versions

## README

<div align="center">
  <picture>
    <source srcset="https://github.com/better-auth/better-auth/blob/main/banner-dark.png?raw=true" media="(prefers-color-scheme: dark)"/>
    <source srcset="https://github.com/better-auth/better-auth/blob/main/banner-light.png?raw=true" media="(prefers-color-scheme: light)"/>
    <img src="https://github.com/better-auth/better-auth/blob/main/banner-light.png?raw=true" alt="Better Auth Logo"/>
  </picture>

  [![npm](https://img.shields.io/npm/dm/better-auth?style=flat&colorA=000000&colorB=000000)](https://npm.chart.dev/better-auth?primary=neutral&gray=neutral&theme=dark)
  [![npm version](https://img.shields.io/npm/v/better-auth.svg?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/better-auth)
  [![GitHub stars](https://img.shields.io/github/stars/better-auth/better-auth?style=flat&colorA=000000&colorB=000000)](https://github.com/better-auth/better-auth/stargazers)

  <p>
    <a href="https://discord.gg/better-auth">Discord</a>
    ·
    <a href="https://better-auth.com">Website</a>
    ·
    <a href="https://github.com/better-auth/better-auth/issues">Issues</a>
  </p>
</div>

## Better Auth

Better Auth is a framework-agnostic authentication (and authorization) framework for TypeScript. It provides a comprehensive set of features out of the box and includes a plugin ecosystem that simplifies adding advanced functionalities with minimal code in a short amount of time. Whether you need 2FA, multi-tenant support, or other complex features, it lets you focus on building your actual application instead of reinventing the wheel.

## Getting Started

```bash
npm i better-auth
```

Read the [Installation Guide](https://better-auth.com/docs/installation) to
learn more.

---
_Source: https://npm.io/package/better-auth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
