better-auth

Integrate Better Auth into Cloudflare Workers with Drizzle ORM.

Updated Jul 18, 2026
One-click install
npx skills add https://github.com/arthrod/conejo-skills --skill better-auth-arthrod
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth
Source: https://github.com/arthrod/conejo-skills/tree/main/skills/better-auth
Command: npx skills add https://github.com/arthrod/conejo-skills --skill better-auth-arthrod

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires better-auth, drizzle-orm, kysely, hono, and includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill solves the complexity of implementing secure, scalable authentication in Cloudflare Workers and D1 environments, eliminating the need for manual session management, OAuth boilerplate, and database schema synchronization.

Core Features & Use Cases

  • Comprehensive Auth: Supports email/password, 45+ social providers, 2FA, and passkeys out of the box.
  • Multi-Tenant Ready: Includes built-in support for organizations, teams, and role-based access control (RBAC).
  • Use Case: Quickly add secure authentication to a new SaaS project by initializing the Better Auth client and configuring the Drizzle adapter for your D1 database.

Quick Start

Use the better-auth skill to initialize a new authentication configuration for a Cloudflare Worker project using Drizzle ORM.

Frequently Asked Questions about better-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement authentication in Cloudflare Workers using Drizzle ORM?

You can implement authentication in Cloudflare Workers by initializing the Better Auth framework and configuring the Drizzle ORM adapter to handle schema interactions and session persistence with your D1 database.

Does Better Auth work with Cloudflare D1 databases for session management?

Yes, Better Auth integrates natively with Cloudflare D1 environments, using Drizzle ORM or Kysely as database adapters to automatically handle session persistence and eliminate manual session management boilerplate.

Can I set up multi-tenant organizations and RBAC in a Cloudflare Worker?

Yes, this framework provides built-in multi-tenant support for organizations and teams within Cloudflare Workers, including role-based access control to manage user permissions across your SaaS application.

What authentication methods are available for TypeScript apps on Cloudflare?

Available authentication methods include email and password, passkeys, two-factor authentication, and OAuth 2.1 integration with over 45 social providers out of the box for TypeScript applications.

Do I need Kysely or Drizzle to use Better Auth with Cloudflare Workers?

Yes, you must use either Drizzle ORM or Kysely as a database adapter because they are required to manage D1 database schema interactions and session persistence when integrating Better Auth.

What is the best way to add OAuth 2.1 social login to a Cloudflare D1 project?

The best way to add OAuth 2.1 social login is using the Better Auth framework, which supports 45+ social providers out of the box and handles OAuth boilerplate automatically when configured with a D1 database adapter.