What problem does it solve? Setting up TypeScript authentication with Better Auth involves many moving parts—database adapters, session storage, plugins, and environment variables—and misconfiguration leads to broken migrations, session bugs, or security gaps. This Skill provides a structured reference so you configure Better Auth correctly the first time. ## Core Features & Use Cases - Setup Workflow: Step-by-step installation, environment variable configuration, auth.ts creation, route handlers, and CLI migrations for built-in, Drizzle, and Prisma adapters. - Session & Security Guidance: Covers cookie cache strategies (compact, JWT, JWE), secondary storage, rate limiting, CSRF, and cross-subdomain cookies. - Plugin & Client Integration: Documents tree-shakable plugin imports (twoFactor, organization, passkey, magicLink) and framework clients for React, Vue, Svelte, and Solid. - Use Case: You are adding email/password plus Google OAuth login to a Next.js app with a Drizzle/PostgreSQL backend. 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 app with a Drizzle PostgreSQL adapter, email and password sign-in, and session cookie caching.