What problem does it solve? Setting up TypeScript authentication with Better Auth involves many moving parts—environment variables, database adapters, session strategies, plugins, and CLI migrations—and misconfigurations like using table names instead of model names cause subtle failures. This Skill provides version-aware guidance and a structured setup workflow to configure Better Auth correctly. ## Core Features & Use Cases - Version-Matched Documentation: Resolves the installed better-auth version from the lockfile and fetches matching docs via MCP or llms.txt, avoiding outdated API guidance. - Complete Setup Workflow: Covers installation, environment variables, auth.ts creation, route handlers, and migrations for built-in, Drizzle, and Prisma adapters. - Configuration Reference: Details session storage strategies, cookie cache modes, hooks, plugins, rate limiting, and common gotchas like model name mapping. - Use Case: When adding email/password and Google OAuth login to a Next.js app with a Drizzle/Postgres database, use this Skill to generate the auth config, run schema generation, and wire up the client with correct plugin imports. ## Quick Start Set up Better Auth in my TypeScript project with email/password authentication and a PostgreSQL database using the Drizzle adapter.