What problem does it solve? Building authentication from scratch in TypeScript applications is error-prone and time-consuming, especially when supporting multiple auth methods like OAuth, 2FA, and passkeys across different frameworks and databases. ## Core Features & Use Cases - Multiple Auth Methods: Configure email/password, social OAuth (GitHub, Google, Discord), magic links, passkeys/WebAuthn, and username authentication with a feature selection matrix. - Advanced Security Features: Add two-factor authentication (TOTP), organizations/multi-tenancy, rate limiting, and session management through Better Auth plugins. - Database Flexibility: Integrate with PostgreSQL, MySQL, SQLite, or MongoDB via direct connections or Drizzle, Prisma, and Kysely ORM adapters. - Use Case: You are building a Next.js SaaS app that needs GitHub OAuth login, optional 2FA for admins, and organization-based team management backed by PostgreSQL with Prisma. ## Quick Start Ask the assistant to set up Better Auth in your TypeScript project with your chosen database and authentication methods, optionally running the interactive initialization script to generate auth.ts and .env files.