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.7.0 ↗ · + Follow · compare 10 versions
6,447 symbols 23,204 edges 1,549 files ⚖ MIT 302 documented · 5% updated todayv1.7.1 · 2026-08-18★ 29,687296 open issues

Browse by type

Functions 5,313 Types & classes 1,134
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.7.0/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 report it via GitHub Security Advisories.

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 4,908
Interface 976
Method 405
Class 157
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/scim/src/user-patch.ts47 symbols
packages/oauth-provider/src/utils/index.ts46 symbols
packages/scim/src/configuration.ts45 symbols
packages/oauth-provider/src/token.ts40 symbols
packages/sso/src/saml.test.ts37 symbols
packages/core/src/types/context.ts37 symbols
packages/oauth-provider/src/logout.ts36 symbols
demo/nextjs/lib/scim-demo-employee.ts36 symbols
packages/scim/src/managed-connections.ts35 symbols

Dependencies from manifests, versioned

@ai-sdk/anthropic3.0.85 · 1×
@ai-sdk/openai3.0.73 · 1×
@ai-sdk/openai-compatible2.0.51 · 1×
@ai-sdk/react3.0.210 · 1×
@arethetypeswrong/cli0.18.3 · 1×
@babel/core7.29.7 · 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