name: olore-better-auth-latest description: Local better-auth documentation reference (latest). Better Auth documentation. Use for TypeScript authentication, OAuth, email/password, 2FA, organizations, sessions, and framework-agnostic auth.
better-auth Documentation
Better Auth is a framework-agnostic, universal authentication and authorization library for TypeScript. It provides email/password, OAuth/social login, 2FA, passkeys, organizations, multi-session, SSO, and a plugin ecosystem — all self-hosted with full control over your database.
Quick Reference
| Task | Entry Point |
|---|---|
| Install | contents/installation.mdx |
| Basic usage | contents/basic-usage.mdx |
| Database adapters | contents/adapters/ |
| Social/OAuth providers | contents/authentication/ |
| Core concepts | contents/concepts/ |
| Framework integrations | contents/integrations/ |
| Plugins | contents/plugins/ |
| Config options | contents/reference/options.mdx |
| Error reference | contents/reference/errors/ |
When to use
Use this skill when the user asks about:
- Setting up authentication (email/password, OAuth, magic link, passkeys, 2FA, OTP)
- Integrating Better Auth with Next.js, Nuxt, SvelteKit, Astro, Hono, Express, or other frameworks
- Database adapters (Drizzle, Prisma, Mongoose, Postgres, MySQL, SQLite)
- Session and user management
- Plugins (organization/teams, admin, JWT, OIDC provider, SCIM, SSO)
- Migrating from NextAuth, Clerk, Auth0, Supabase Auth, or WorkOS
- Configuration options, hooks, cookies, rate limiting, or TypeScript types
How to find information
- First, read
TOC.mdfor 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.