What problem does it solve? Setting up TypeScript authentication with Better Auth involves many configuration decisions—database adapters, session storage, plugins, email flows, and security options—where small mistakes cause broken logins or insecure deployments. 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 variables, auth.ts creation, route handlers, and CLI migration with a verification endpoint. - Configuration Reference: Covers database adapters (Drizzle, Prisma, MongoDB, direct drivers), session storage strategies, cookie cache modes, hooks, rate limiting, and security options. - Plugin Guidance: Tree-shakeable plugin imports for two-factor, organization, passkey, magic link, admin, and more, plus client-side setup for React, Vue, Svelte, and Solid. - Use Case: You are adding email/password authentication with email verification and an organization plugin to an Astro SSR app. Use this Skill to configure the Drizzle adapter, set up sendVerificationEmail, run the CLI migration, and avoid the model-name vs table-name gotcha. ## Quick Start Ask the AI to set up Better Auth with email and password sign-in using a Drizzle adapter and generate the required auth.ts configuration.