What problem does it solve?
This Skill provides a robust, self-hostable authentication solution for TypeScript applications, offering a powerful alternative to cloud-based services like Clerk or Auth.js. It handles complex authentication flows, multi-tenancy, and integrates with various databases and frameworks.
Core Features & Use Cases
- Comprehensive Auth Features: Supports email/password, social logins (Google, GitHub, etc.), 2FA, passkeys, organizations, and Role-Based Access Control (RBAC).
- Database Flexibility: Integrates with Drizzle ORM or Kysely for Cloudflare D1, or standard SQL databases like PostgreSQL.
- Plugin Architecture: Extensible with numerous plugins for features like Stripe integration, SCIM provisioning, and more.
- Use Case: Building a multi-tenant SaaS application where you need full control over user data and authentication logic, or integrating advanced auth features into an existing TypeScript project.
Quick Start
Use the better-auth skill to set up email and password authentication with a Drizzle ORM adapter for D1.