What problem does it solve? Setting up authentication in TypeScript projects involves many moving parts—database adapters, session storage, plugins, and environment variables—and misconfiguration leads to broken logins, schema mismatches, or security gaps. This Skill provides a structured reference for configuring 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 Configuration: Guidance on cookie cache strategies (compact, JWT, JWE), secondary storage, rate limiting, CSRF, and cross-subdomain cookies. - Plugin & Client Integration: Tree-shakeable plugin imports (twoFactor, organization, passkey, magicLink, etc.) and framework-specific clients for React, Vue, Svelte, and Solid. - Use Case: You are adding email/password plus Google OAuth login to a Next.js app backed by Prisma and Postgres. Use this Skill to generate the schema, wire the adapter, configure social providers, and avoid the common model-name vs table-name pitfall. ## Quick Start Ask the AI to set up Better Auth with email and password login using a Prisma adapter and Postgres database in your TypeScript project.