What problem does it solve? Setting up TypeScript authentication with Better Auth involves many configuration decisions—database adapters, session storage, plugins, and environment variables—where small mistakes cause broken logins or security gaps. This Skill provides a structured reference so you configure auth correctly the first time. ## Core Features & Use Cases - Server & Client Setup: Guides installation, auth.ts creation, route handlers, CLI migrations, and framework-specific client imports for React, Vue, Svelte, and Solid. - Session & Security Configuration: Covers cookie cache strategies (compact, JWT, JWE), secondary storage, rate limiting, CSRF, and cross-subdomain cookies. - Plugin & Database Guidance: Explains tree-shakable plugin imports (twoFactor, organization, passkey, etc.) and the critical model-name vs table-name distinction for Prisma and Drizzle adapters. - Use Case: You are adding email/password plus Google OAuth login to a Next.js app with a Prisma database. Use this Skill to generate the correct auth.ts, run the CLI migration, and avoid the common model-name mapping pitfall. ## Quick Start Set up Better Auth in my TypeScript app with email and password login, a PostgreSQL database, and session cookie caching.