Files
better-auth/docs
Gustavo Valverde 36a6c2ea03 fix(oauth-provider): approve pending clients with serial ids and Prisma on MongoDB
The approval guard filtered userId on null, which serial ids turn into 0,
so every approval returned 409. Pending clients come only from anonymous
registration and never have a userId, so the guard now checks referenceId
alone. Pending clients also store referenceId as null, because Prisma on
MongoDB does not match unset fields with a null filter.

A pending private_key_jwt client can rotate its inline keys again: the
pending check in client assertion verification only guarded key rotation,
and token endpoints already refuse pending clients.
2026-10-15 16:19:09 +01:00
..
2026-10-14 21:01:10 +00:00
…
…

Better Auth

Website & Docs

The main website and documentation for better-auth.com

Website GitHub Stars License


Quick Start

# install
pnpm install

# develop
pnpm dev

Open localhost:3000 to preview.

Stack

  • Framework: Next.js 16 (App Router, Turbopack)
  • Styling: Tailwind CSS 4
  • Animation: Framer Motion
  • Docs: Fumadocs
  • Icons: Lucide React
  • Fonts: Geist Sans & Geist Mono

Structure

├─ app/
│  ├─ page.tsx              # Home — hero + sign-in demo
│  ├─ products/             # Products page
│  ├─ blog/                 # Blog posts
│  └─ docs/[[...slug]]/     # Documentation (MDX)
│
├─ components/
│  ├─ landing/              # Marketing components
│  ├─ docs/                 # Documentation components
│  ├─ ui/                   # Shared primitives
│  └─ icons/                # Brand icons & logo
│
├─ content/                 # MDX documentation files
│
├─ lib/
│  ├─ source.ts             # Fumadocs content source
│  └─ utils.ts              # Utilities
│
└─ public/
   └─ branding/             # Logo assets (SVG + PNG)

Scripts

pnpm dev          # Start dev server (Turbopack)
pnpm build        # Production build
pnpm start        # Serve production build
pnpm lint:fix     # Lint & auto-fix with Biome