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 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, auth.ts creation, route handlers, and framework-specific client imports for React, Vue, Svelte, and Solid. - Database & Session Management: Covers Drizzle, Prisma, and MongoDB adapters, secondary storage with Redis, cookie cache strategies (compact, JWT, JWE), and stateless mode. - Plugins & Security: Documents tree-shakable plugin imports (twoFactor, organization, passkey, magicLink), rate limiting, CSRF settings, and hooks for custom logic. - Use Case: You are adding email/password plus Google OAuth login to a Hono API with a Drizzle/PostgreSQL backend. Use this Skill to configure the adapter, run the CLI migration, set trusted origins, and verify the setup with the /api/auth/ok endpoint. ## Quick Start Set up Better Auth in my TypeScript server with a Drizzle PostgreSQL adapter, email and password sign-in, and the two-factor authentication plugin.