better-auth - Build and troubleshoot better-auth systems
Build and troubleshoot self-hosted TypeScript authentication systems on Cloudflare Workers and D1 using better-auth.
Tags
Updated: 2026-11-28Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Configure better-auth authentication
- Integrate Drizzle with D1
- Integrate Kysely with D1
- Implement social OAuth flows
- Configure two-factor authentication
- Configure passkey authentication
- Configure organizations and RBAC
- Configure SSO and SAML
- Configure TanStack Start cookies
- Troubleshoot adapter errors
- Troubleshoot session serialization
- Troubleshoot OAuth flows
Inputs
- TypeScript project
- Cloudflare Worker project
- Cloudflare D1 database
- Drizzle ORM schema
- Kysely database configuration
- Authentication provider credentials
- Better-auth configuration
- Framework integration details
Outputs
- Authentication configuration code
- Database adapter configuration
- Authentication API route handlers
- OAuth integration code
- Session and cookie configuration
- Error diagnosis messages
Requirements
- TypeScript runtime
- Cloudflare Workers environment
- Cloudflare D1 access
- Drizzle ORM or Kysely for D1
- ESM support for better-auth 1.4.0
