better-auth
TypeScript/JavaScript认证的Better Auth实现专家。涵盖会话、OAuth提供商、插件、适配器和安全性。在处理认证、登录、注册、会话、OAuth、社交登录或用户管理时使用。
📖 中文导读:TypeScript/JavaScript认证的Better Auth实现专家。涵盖会话、OAuth提供商、插件、适配器和安全性。在处理认证、登录、注册、会话、OAuth、社交登录或用户管理时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: better-auth description: Expert Better Auth implementation for TypeScript/JavaScript authentication. Covers sessions, OAuth providers, plugins, adapters, and security. Use when working with authentication, login, signup, sessions, OAuth, social login, or user management.
Better Auth Expert
Overview
Better Auth is a comprehensive authentication library for TypeScript/JavaScript applications with built-in support for sessions, OAuth, plugins, and multiple database adapters.
Quick Start
bun add better-auth
Documentation Structure
- installation.md - Installation and setup
- basic-usage.md - Basic usage patterns
- introduction.md - Introduction to Better Auth
- concepts/ - Core concepts (sessions, database, plugins)
- authentication/ - Auth methods (email, OAuth, passkeys)
- plugins/ - Available plugins
- adapters/ - Database adapters
- integrations/ - Framework integrations
- guides/ - How-to guides
- reference/ - API reference
- examples/ - Example implementations
- errors/ - Error handling
Key Features
- Session-based authentication
- OAuth providers (Google, GitHub, Discord, etc.)
- Email/Password authentication
- Passkeys/WebAuthn
- Two-factor authentication
- Multiple database adapters
- Plugin system
Instructions
- Configure auth instance with database adapter
- Set up session management
- Add authentication providers as needed
- Use plugins for extended functionality
- Integrate with your framework
Documentation Reference
Official site: https://www.better-auth.com