better-auth Documentation
Better Auth documentation. Use for TypeScript authentication, OAuth, email/password, 2FA, organizations, sessions, and framework-agnostic auth.
Quick Reference
| Task |
Entry Point |
| Getting started |
contents/introduction.mdx |
| Installation |
contents/installation.mdx |
| Basic usage |
contents/basic-usage.mdx |
| Configuration options |
contents/reference/options.mdx |
| Database adapters |
contents/adapters/ |
| OAuth providers |
contents/authentication/ |
| Plugins |
contents/plugins/index.mdx |
| Framework integrations |
contents/integrations/ |
| Error reference |
contents/reference/errors/index.mdx |
When to use
Use this skill when the user asks about:
- Setting up authentication with Better Auth (email/password, OAuth, magic links, OTP, passkeys)
- Configuring social login providers (Google, GitHub, Apple, Microsoft, etc.)
- Using Better Auth plugins (2FA, organizations, admin, API keys, JWT, SSO, OIDC, etc.)
- Integrating Better Auth with frameworks (Next.js, Nuxt, Astro, SvelteKit, Hono, Express, etc.)
- Database adapter setup (Prisma, Drizzle, MongoDB, PostgreSQL, MySQL, SQLite)
- Session management, cookies, rate limiting, and security
- Migrating from other auth providers or upgrading to the latest version
How to find information
- First, read
TOC.md for complete file listing organized by directory
- Identify relevant section based on user's question
- Read specific files for details
TOC.md contains all files organized by directory - always check it first.
1---2name: olore-better-auth-latest3description: Local better-auth documentation reference (latest). Better Auth documentation. Use for TypeScript authentication, OAuth, email/password, 2FA, organizations, sessions, and framework-agnostic auth.4metadata:5 source: https://skillmd.com/skills/olorehq/olore-better-auth-latest6---78# better-auth Documentation910Better Auth documentation. Use for TypeScript authentication, OAuth, email/password, 2FA, organizations, sessions, and framework-agnostic auth.1112## Quick Reference1314| Task | Entry Point |15|------|-------------|16| Getting started | `contents/introduction.mdx` |17| Installation | `contents/installation.mdx` |18| Basic usage | `contents/basic-usage.mdx` |19| Configuration options | `contents/reference/options.mdx` |20| Database adapters | `contents/adapters/` |21| OAuth providers | `contents/authentication/` |22| Plugins | `contents/plugins/index.mdx` |23| Framework integrations | `contents/integrations/` |24| Error reference | `contents/reference/errors/index.mdx` |2526## When to use2728Use this skill when the user asks about:29- Setting up authentication with Better Auth (email/password, OAuth, magic links, OTP, passkeys)30- Configuring social login providers (Google, GitHub, Apple, Microsoft, etc.)31- Using Better Auth plugins (2FA, organizations, admin, API keys, JWT, SSO, OIDC, etc.)32- Integrating Better Auth with frameworks (Next.js, Nuxt, Astro, SvelteKit, Hono, Express, etc.)33- Database adapter setup (Prisma, Drizzle, MongoDB, PostgreSQL, MySQL, SQLite)34- Session management, cookies, rate limiting, and security35- Migrating from other auth providers or upgrading to the latest version3637## How to find information38391. **First**, read `TOC.md` for complete file listing organized by directory402. Identify relevant section based on user's question413. Read specific files for details4243**TOC.md contains all files organized by directory - always check it first.**