MCPcopy Create free account
hub / github.com/better-auth/better-auth

github.com/better-auth/better-auth

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.6.25 ↗ · + Follow · compare 3 versions
4,755 symbols 16,523 edges 1,335 files ⚖ MIT 227 documented · 5% updated 1d agov1.6.25 · 2026-07-23★ 29,335257 open issues

Browse by type

Functions 3,873 Types & classes 882
What it actually does AI analysis from the code graph — generated when you open this
loading…
README
<img src="https://github.com/better-auth/better-auth/raw/v1.6.25/banner-light.png" alt="Better Auth Logo"/>

npm npm version GitHub stars

<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>

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.

Why Better Auth

Authentication in the TypeScript ecosystem is a half-solved problem. Other open-source libraries often require a lot of additional code for anything beyond basic authentication. Rather than just pushing third-party services as the solution, I believe we can do better as a community—hence, Better Auth.

Contribution

Better Auth is a free and open source project licensed under the MIT License. You are free to do whatever you want with it.

You could help continuing its development by:

Security

If you discover a security vulnerability within Better Auth, please send an e-mail to security@better-auth.com.

All reports will be promptly addressed, and you'll be credited accordingly.

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 3,479
Interface 718
Method 394
Class 163
Enum 1

Languages

TypeScript100%

Modules by API surface

e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts566 symbols
packages/kysely-adapter/src/node-sqlite-dialect.ts48 symbols
packages/kysely-adapter/src/bun-sqlite-dialect.ts48 symbols
packages/core/src/types/context.ts36 symbols
packages/kysely-adapter/src/d1-sqlite-dialect.ts32 symbols
packages/better-auth/src/plugins/open-api/generator.ts31 symbols
packages/oauth-provider/src/utils/index.ts29 symbols
packages/better-auth/src/plugins/mcp/client/adapters.ts29 symbols
packages/scim/src/routes.ts28 symbols
docs/app/brand/brand-client.tsx27 symbols
docs/components/ai-chat.tsx26 symbols
packages/drizzle-adapter/src/drizzle-adapter.ts25 symbols

Dependencies from manifests, versioned

@ai-sdk/anthropic3.0.44 · 1×
@ai-sdk/openai3.0.29 · 1×
@ai-sdk/openai-compatible2.0.29 · 1×
@ai-sdk/react3.0.106 · 1×
@arethetypeswrong/cli0.18.2 · 1×
@babel/core7.29.0 · 1×
@babel/preset-env7.29.0 · 1×
@babel/preset-react7.28.5 · 1×
@babel/preset-typescript7.28.5 · 1×
@babel/runtime7.28.6 · 1×
@better-auth/api-keyworkspace:* · 1×

Datastores touched

better_authDatabase · 1 repos
(mysql)Database · 1 repos
better_authDatabase · 1 repos
(mongodb)Database · 1 repos

For agents

$ claude mcp add better-auth \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page