What problem does it solve? Integrating authentication into a TypeScript application involves many configuration decisions—database adapters, session storage, cookie strategies, plugins, and security settings—where small mistakes cause broken logins or security gaps. This Skill provides a structured reference for configuring Better Auth correctly the first time. ## Core Features & Use Cases - Core Configuration Guidance: Covers environment variables, CLI commands, database adapters (Drizzle, Prisma, MongoDB, direct drivers), and the critical model-name vs table-name distinction. - Session & Security Setup: Explains session storage priority, cookie cache strategies (compact, JWT, JWE), rate limiting, CSRF, and cross-subdomain cookies. - Plugin & Client Integration: Documents tree-shakeable plugin imports (twoFactor, organization, passkey, magicLink), framework clients (React, Vue, Svelte), and type inference via $Infer.Session. - Use Case: You are adding authentication to a Next.js app backed by Drizzle ORM. Use this Skill to configure the Drizzle adapter, enable email/password sign-in, set up session cookie caching, and add the two-factor plugin without hitting common pitfalls. ## Quick Start Set up Better Auth in my TypeScript app with a Drizzle database adapter, email and password sign-in, and session cookie caching following best practices.