better-auth - Build Better Auth systems on Cloudflare D1
Build and troubleshoot self-hosted TypeScript authentication systems on Cloudflare Workers and D1 with social auth, 2FA, passkeys, organizations, and RBAC.
Tags
Updated: 2026-11-28Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Configure Better Auth
- Integrate Drizzle with D1
- Integrate Kysely with D1
- Implement social OAuth
- Configure two-factor authentication
- Configure passkeys
- Configure organizations and RBAC
- Configure sessions and cookies
- Troubleshoot authentication errors
- Integrate TanStack Start
- Configure SSO and SAML
- Configure SCIM provisioning
Inputs
- TypeScript project
- Cloudflare Workers project
- Cloudflare D1 database
- Better Auth configuration
- Drizzle ORM or Kysely setup
- Authentication provider credentials
- Environment variables
- Framework integration details
Outputs
- Authentication configuration files
- Database adapter configuration
- Authentication HTTP endpoints
- Authentication sessions
- Authentication cookies
- OAuth callback handling
- Troubleshooting guidance
Requirements
- Better Auth package
- TypeScript runtime
- Cloudflare Workers runtime
- Cloudflare D1 binding
- Drizzle ORM or Kysely for D1
- ESM-compatible package runtime
