better-auth

Complete Better Auth documentation in markdown format. Use when implementing authentication in TypeScript projects - covers OAuth providers (Google, GitHub, etc.), email/password, passkeys, 2FA, session management, database adapters (Prisma, Drizzle), and framework integrations (Next.js, SvelteKit, etc.).

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "better-auth" with this command: npx skills add lb-better-auth-skill

Better Auth Documentation

Complete Better Auth documentation embedded in markdown. Read from references/ to answer questions about authentication implementation, OAuth setup, database configuration, and framework integration.

Documentation Structure

All documentation is in references/ organized by topic:

Core Documentation

Getting Started

  • references/introduction.mdx - What is Better Auth
  • references/installation.mdx - Setup guide
  • references/basic-usage.mdx - Authentication basics
  • references/comparison.mdx - vs other auth libraries

Authentication Methods (references/authentication/)

OAuth providers and authentication strategies:

  • google.mdx - Google OAuth
  • github.mdx - GitHub OAuth
  • microsoft.mdx - Microsoft/Azure AD
  • apple.mdx - Apple Sign In
  • discord.mdx, facebook.mdx, twitter.mdx, etc.
  • email-password.mdx - Email & password auth
  • magic-link.mdx - Passwordless magic links
  • passkey.mdx - WebAuthn passkeys

Database Adapters (references/adapters/)

  • prisma.mdx - Prisma ORM
  • drizzle.mdx - Drizzle ORM
  • kysely.mdx - Kysely
  • mongodb.mdx - MongoDB
  • pg.mdx - node-postgres

Concepts (references/concepts/)

Core authentication concepts:

  • session.mdx - Session management
  • oauth.mdx - OAuth flow
  • database.mdx - Database schema
  • rate-limit.mdx - Rate limiting
  • middleware.mdx - Auth middleware
  • cookies.mdx - Cookie handling

Plugins (references/plugins/)

Extension features:

  • two-factor.mdx - 2FA/TOTP
  • passkey.mdx - WebAuthn/passkeys
  • email-verification.mdx - Email verification
  • magic-link.mdx - Magic link auth
  • organization.mdx - Organizations & teams
  • multi-session.mdx - Multiple sessions
  • anonymous.mdx - Anonymous users

Integrations (references/integrations/)

Framework-specific guides:

  • next-js.mdx - Next.js integration
  • sveltekit.mdx - SvelteKit
  • astro.mdx - Astro
  • solid-start.mdx - SolidStart

Examples (references/examples/)

Working examples:

  • next-js.mdx - Complete Next.js example
  • sveltekit.mdx - SvelteKit example

Guides (references/guides/)

How-to guides:

  • custom-session.mdx - Custom session handling
  • testing.mdx - Testing auth flows
  • deployment.mdx - Production deployment

API Reference (references/reference/)

Complete API documentation.

Quick Reference

Common Tasks

TaskFile to Read
Initial setupreferences/installation.mdx
Email & password authreferences/authentication/email-password.mdx
Google OAuthreferences/authentication/google.mdx
GitHub OAuthreferences/authentication/github.mdx
Setup with Prismareferences/adapters/prisma.mdx
Setup with Drizzlereferences/adapters/drizzle.mdx
Session managementreferences/concepts/session.mdx
Add 2FAreferences/plugins/two-factor.mdx
Add passkeysreferences/plugins/passkey.mdx
Next.js integrationreferences/integrations/next-js.mdx
Organizations/teamsreferences/plugins/organization.mdx
Rate limitingreferences/concepts/rate-limit.mdx

When to Use This Skill

  • Implementing authentication in a TypeScript project
  • Setting up OAuth providers (Google, GitHub, Microsoft, etc.)
  • Configuring database adapters (Prisma, Drizzle, etc.)
  • Adding 2FA, passkeys, or magic links
  • Managing sessions and cookies
  • Integrating with Next.js, SvelteKit, or other frameworks
  • Questions about auth patterns and best practices

How to Navigate

  1. Start with references/introduction.mdx for overview
  2. For setup: Read references/installation.mdx
  3. For auth methods: Browse references/authentication/
  4. For database: Check references/adapters/
  5. For advanced features: See references/plugins/
  6. For framework integration: Use references/integrations/

All files are .mdx (Markdown + JSX) but readable as plain markdown.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

NextJS 16+ Complete Documentation

Complete Next.js 16 documentation in markdown format. Use when working with Next.js projects, building React applications, configuring routing, data fetching, rendering strategies, deployment, or migrating from other frameworks. Covers App Router, Pages Router, API routes, server components, server actions, caching, and all Next.js features.

Registry SourceRecently Updated
25.6K
Profile unavailable
Web3

Drizzle ORM Complete Documentation

Complete Drizzle ORM documentation in markdown format. Use when working with Drizzle ORM - covers schema definition, queries, migrations, database connections (PostgreSQL, MySQL, SQLite), integrations (Neon, Supabase, PlanetScale, Cloudflare D1, Turso), column types, relations, transactions, and framework usage (Next.js, SvelteKit, Astro).

Registry SourceRecently Updated
52.3K
Profile unavailable
Coding

Next.js Production Engineering

Build, optimize, and operate production Next.js apps with best practices for architecture, data fetching, caching, rendering, testing, deployment, and observ...

Registry SourceRecently Updated
0335
Profile unavailable