介绍
Better Auth 是一个框架无关的、通用的 TypeScript 认证和授权框架。它开箱即用地提供了一套全面的功能集,并包含一个插件生态系统,便于添加高级功能。无论您需要 2FA、passkey、多租户、多会话支持,还是企业级功能如 SSO、创建自己的 IDP,它都能让您专注于构建应用程序,而非重新发明轮子。
功能
Better Auth 旨在成为最全面的认证库。它开箱即用地提供广泛的功能,并允许您使用插件扩展它。以下是一些功能:
Framework Agnostic
Support for most popular frameworks
Email & Password
Built-in support for secure email and password authentication
Account & Session Management
Manage user accounts and sessions with ease
Built-In Rate Limiter
Built-in rate limiter with custom rules
Automatic Database Management
Automatic database management and migrations
Social Sign-on
Multiple social sign-on providers
Organization & Access Control
Manage organizations and access control
Two Factor Authentication
Secure your users with two factor authentication
Plugin Ecosystem
Even more capabilities with plugins
...还有更多!
AI 工具
LLMs.txt
Better Auth 公开了一个 LLMs.txt,帮助 AI 模型了解如何集成和与您的认证系统交互。请在 https://better-auth.com/llms.txt 查看它。
MCP
Better Auth 提供了一个 MCP 服务器,因此您可以使用它与任何支持 Model Context Protocol (MCP) 的 AI 模型集成。
claude mcp add --transport http better-auth https://mcp.chonkie.ai/better-auth/better-auth-builder/mcp {
"$schema": "https://opencode.ai/config.json",
"mcp": {
"Better Auth": {
"type": "remote",
"url": "https://mcp.chonkie.ai/better-auth/better-auth-builder/mcp",
"enabled": true,
}
}
}{
"Better Auth": {
"url": "https://mcp.chonkie.ai/better-auth/better-auth-builder/mcp"
}
}