What problem does it solve? Setting up authentication in TypeScript projects involves many moving parts—database adapters, session storage, OAuth providers, email flows, and security settings—and misconfiguration leads to broken logins or security gaps. This Skill provides a structured reference for configuring Better Auth correctly across frameworks and ORMs. ## Core Features & Use Cases - Server & Client Setup: Guides installation, environment variables, auth.ts creation, route handlers, and framework-specific client imports (React, Vue, Svelte, Solid). - Database & Session Management: Covers Drizzle, Prisma, MongoDB, and direct driver adapters, plus session storage strategies including secondary storage, cookie caching, and stateless mode. - Plugins & Security: Documents plugin configuration (two-factor, organization, passkey, magic link), rate limiting, CSRF settings, hooks, and common pitfalls like model-name vs table-name mismatches. - Use Case: You are adding email/password and Google OAuth login to a NestJS or Next.js app with a Drizzle/Postgres database. Use this Skill to generate the schema, run migrations, configure social providers, and verify the setup with the /api/auth/ok endpoint. ## Quick Start Set up Better Auth in my TypeScript project with email/password login, a Drizzle Postgres adapter, and session cookie caching.