概要
This skill provides specialized guidance for implementing Better Auth, a comprehensive self-hosted authentication framework designed for modern TypeScript environments. It helps developers navigate complex configurations such as the D1 adapter requirements (necessitating Drizzle or Kysely), stateless session management, and multi-tenant SaaS structures with RBAC. By leveraging this skill, developers can avoid common pitfalls like serverless initialization errors in Cloudflare Workers, ensuring robust implementations of passkeys, 2FA, and custom OAuth 2.1 providers while maintaining full control over their authentication data.