What problem does it solve? Adding authentication to TypeScript applications is error-prone, especially on Cloudflare D1 where adapter misconfigurations, CORS mistakes, and OAuth callback mismatches cause cryptic failures. This Skill provides verified setup patterns, migration guides, and solutions for the 15 most common Better Auth errors. ## Core Features & Use Cases - D1 and Multi-Database Setup: Configure Better Auth with Cloudflare D1 (native or via Drizzle/Kysely), PostgreSQL, MongoDB, or MySQL with correct schema and migrations. - Full Auth Feature Coverage: Implement email/password, 45+ social OAuth providers, 2FA, passkeys, magic links, organizations/RBAC, SSO/SAML, and API keys. - Error Diagnosis and Migration: Resolve D1 adapter errors, CORS issues, and OAuth redirect mismatches, plus step-by-step upgrades for v1.4.0, v1.5.0, and v1.6.0 breaking changes. - Use Case: A developer building a SaaS on Cloudflare Workers needs multi-tenant auth with Google sign-in and 2FA; this Skill walks them through D1 schema, Drizzle adapter setup, organization plugin configuration, and deployment. ## Quick Start Ask the assistant to set up Better Auth with email and Google sign-in on a Cloudflare Worker using D1 and Drizzle.