What problem does it solve? Setting up TypeScript authentication with Better Auth involves many moving parts—environment variables, database adapters, session strategies, plugins, and migrations—and misconfiguration leads to broken logins, missing schema tables, or insecure sessions. This Skill provides a structured reference covering the full setup workflow and common pitfalls. ## Core Features & Use Cases - Setup Workflow: Step-by-step installation, environment variable configuration, auth.ts creation, route handler setup, and CLI migrations for built-in, Drizzle, and Prisma adapters. - Session & Security Configuration: Guidance on cookie cache strategies (compact, JWT, JWE), secondary storage, rate limiting, CSRF, and cross-subdomain cookies. - Plugins & Client Integration: Tree-shakeable plugin imports (twoFactor, organization, magicLink, passkey) and framework-specific client setup for React, Vue, Svelte, and Solid. - Use Case: You are adding email/password plus Google OAuth to a Hono API backed by Drizzle and Neon Postgres. Use this Skill to generate the auth schema, configure the Drizzle adapter with the correct provider, and verify the setup via the /api/auth/ok endpoint. ## Quick Start Set up Better Auth in my TypeScript project with email and password sign-in, a Drizzle PostgreSQL adapter, and session cookie caching.