← 返回
安全合规 中文

Batter Auth Complete Documentation

Complete Better Auth documentation in markdown format. Use when implementing authentication in TypeScript projects - covers OAuth providers (Google, GitHub, etc.), email/password, passkeys, 2FA, session management, database adapters (Prisma, Drizzle), and framework integrations (Next.js, SvelteKit, etc.).
Better Auth 完整 Markdown 文档。适用于 TypeScript 项目认证开发,涵盖 OAuth 提供商(Google、GitHub 等)、邮箱/密码、通行密钥、双因素认证、会话管理、数据库适配器(Prisma、Drizzle)及框架集成(Next.js、SvelteKit 等)。
leonaaardob
安全合规 clawhub v1.4.18 1 版本 99758.1 Key: 无需
★ 1
Stars
📥 2,042
下载
💾 56
安装
1
版本
#2fa#authentication#better-auth#documentation#drizzle#latest#nextjs#oauth#passkeys#prisma#typescript

概述

Better Auth Documentation

Complete Better Auth documentation embedded in markdown. Read from references/ to answer questions about authentication implementation, OAuth setup, database configuration, and framework integration.

Documentation Structure

All documentation is in references/ organized by topic:

Core Documentation

Getting Started

  • references/introduction.mdx - What is Better Auth
  • references/installation.mdx - Setup guide
  • references/basic-usage.mdx - Authentication basics
  • references/comparison.mdx - vs other auth libraries

Authentication Methods (references/authentication/)

OAuth providers and authentication strategies:

  • google.mdx - Google OAuth
  • github.mdx - GitHub OAuth
  • microsoft.mdx - Microsoft/Azure AD
  • apple.mdx - Apple Sign In
  • discord.mdx, facebook.mdx, twitter.mdx, etc.
  • email-password.mdx - Email & password auth
  • magic-link.mdx - Passwordless magic links
  • passkey.mdx - WebAuthn passkeys

Database Adapters (references/adapters/)

  • prisma.mdx - Prisma ORM
  • drizzle.mdx - Drizzle ORM
  • kysely.mdx - Kysely
  • mongodb.mdx - MongoDB
  • pg.mdx - node-postgres

Concepts (references/concepts/)

Core authentication concepts:

  • session.mdx - Session management
  • oauth.mdx - OAuth flow
  • database.mdx - Database schema
  • rate-limit.mdx - Rate limiting
  • middleware.mdx - Auth middleware
  • cookies.mdx - Cookie handling

Plugins (references/plugins/)

Extension features:

  • two-factor.mdx - 2FA/TOTP
  • passkey.mdx - WebAuthn/passkeys
  • email-verification.mdx - Email verification
  • magic-link.mdx - Magic link auth
  • organization.mdx - Organizations & teams
  • multi-session.mdx - Multiple sessions
  • anonymous.mdx - Anonymous users

Integrations (references/integrations/)

Framework-specific guides:

  • next-js.mdx - Next.js integration
  • sveltekit.mdx - SvelteKit
  • astro.mdx - Astro
  • solid-start.mdx - SolidStart

Examples (references/examples/)

Working examples:

  • next-js.mdx - Complete Next.js example
  • sveltekit.mdx - SvelteKit example

Guides (references/guides/)

How-to guides:

  • custom-session.mdx - Custom session handling
  • testing.mdx - Testing auth flows
  • deployment.mdx - Production deployment

API Reference (references/reference/)

Complete API documentation.

Quick Reference

Common Tasks

TaskFile to Read
--------------------
Initial setupreferences/installation.mdx
Email & password authreferences/authentication/email-password.mdx
Google OAuthreferences/authentication/google.mdx
GitHub OAuthreferences/authentication/github.mdx
Setup with Prismareferences/adapters/prisma.mdx
Setup with Drizzlereferences/adapters/drizzle.mdx
Session managementreferences/concepts/session.mdx
Add 2FAreferences/plugins/two-factor.mdx
Add passkeysreferences/plugins/passkey.mdx
Next.js integrationreferences/integrations/next-js.mdx
Organizations/teamsreferences/plugins/organization.mdx
Rate limitingreferences/concepts/rate-limit.mdx

When to Use This Skill

  • Implementing authentication in a TypeScript project
  • Setting up OAuth providers (Google, GitHub, Microsoft, etc.)
  • Configuring database adapters (Prisma, Drizzle, etc.)
  • Adding 2FA, passkeys, or magic links
  • Managing sessions and cookies
  • Integrating with Next.js, SvelteKit, or other frameworks
  • Questions about auth patterns and best practices

How to Navigate

  1. Start with references/introduction.mdx for overview
  2. For setup: Read references/installation.mdx
  3. For auth methods: Browse references/authentication/
  4. For database: Check references/adapters/
  5. For advanced features: See references/plugins/
  6. For framework integration: Use references/integrations/

All files are .mdx (Markdown + JSX) but readable as plain markdown.

版本历史

共 1 个版本

  • v1.4.18 当前
    2026-03-28 19:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Drizzle ORM Complete Documentation

leonaaardob
完整的 Drizzle ORM Markdown 文档。适用于使用 Drizzle ORM 时,涵盖模式定义、查询、迁移、数据库连接(PostgreSQL、MySQL、SQLite)、集成(Neon、Supabase、PlanetScale
★ 5 📥 3,256
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,699
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,586