What problem does it solve? Setting up authentication in TypeScript projects involves many moving parts—database adapters, session storage, OAuth providers, email flows, and security settings—and misconfiguration leads to broken logins or security gaps. This Skill provides a structured reference for configuring Better Auth correctly the first time. ## Core Features & Use Cases - Server & Client Setup: Guides installation, environment variables, auth.ts creation, route handlers, and CLI schema migration. - Session & Security Configuration: Covers cookie cache strategies (compact, JWT, JWE), secondary storage, rate limiting, CSRF, and cross-subdomain cookies. - Plugins & Integrations: Documents tree-shakable plugin imports for two-factor auth, organizations, passkeys, magic links, OAuth, and more. - Use Case: You are adding email/password plus Google OAuth login to a TanStack Start app with a PostgreSQL database. Use this Skill to configure the adapter, social providers, session caching, and run the CLI migration correctly. ## Quick Start Set up Better Auth in my TypeScript app with email and password sign-in, a PostgreSQL database adapter, and session cookie caching.