What problem does it solve? Integrating authentication into a TypeScript application involves many configuration decisions—session storage, cookie strategies, database adapters, plugins, and security settings—where small mistakes cause broken logins or security gaps. This Skill provides a consolidated reference of Better Auth configuration patterns and common pitfalls so agents generate correct auth setups. ## Core Features & Use Cases - Configuration Reference: Covers core options like baseURL, secret, database adapters (Drizzle, Prisma, MongoDB, direct SQL pools), and trusted origins. - Session & Security Guidance: Explains cookie cache strategies (compact, JWT, JWE), secondary storage, rate limiting, CSRF, and secure cookie settings. - Plugin & Client Setup: Documents tree-shakable plugin imports (twoFactor, organization, passkey, magicLink, etc.) and framework clients for React, Vue, Svelte, and Solid. - Use Case: When adding email/password plus Google OAuth login to a Next.js app with a Prisma database, use this Skill to generate the auth.ts config, run the CLI schema generation, and avoid the model-name vs table-name pitfall. ## Quick Start Set up Better Auth with email and password sign-in plus Google OAuth using a Prisma adapter in my TypeScript project.