better-auth - Build better-auth systems on Cloudflare D1
Build and troubleshoot TypeScript authentication systems with better-auth, including D1 adapters, OAuth, sessions, 2FA, passkeys, organizations, and RBAC.
Tags
Updated: 2026-11-28What this skill does
- Configure better-auth
- Connect Drizzle to D1
- Connect Kysely to D1
- Implement social OAuth
- Manage authentication sessions
- Configure two-factor authentication
- Configure passkey authentication
- Configure organizations and RBAC
- Integrate TanStack Start cookies
- Troubleshoot authentication errors
Inputs
- TypeScript project
- Cloudflare D1 database
- Drizzle ORM configuration
- Kysely configuration
- Authentication requirements
- OAuth provider credentials
- Environment secrets
- Framework configuration
Outputs
- Authentication configuration files
- Authentication HTTP endpoints
- Server-side authentication methods
- User and session state changes
- OAuth redirects and callbacks
- Authentication error guidance
Requirements
- better-auth 1.4.0
- ESM-compatible runtime
- Drizzle ORM or Kysely for D1
- Cloudflare D1 binding for D1 deployments
- Required authentication provider credentials
