mirror of
https://github.com/better-auth/better-auth.git
synced 2026-08-04 22:00:13 -05:00
- notifySlack now throws on a non-2xx response. fetch resolves normally for a revoked or rate-limited webhook, so delivery could previously stay broken indefinitely without reaching the caller's error logging. The caller still swallows it, so a failed notification does not fail the submission. - Escape untrusted content before it reaches Slack. Every field comes from a public unauthenticated endpoint, so `<https://evil|looks-official>` link syntax and `<!channel>` could be injected into triage output. The message body now renders as plain_text, which processes no markup; the remaining mrkdwn (fallback text, metadata fields) is entity-escaped, and backticks in `context` are replaced so it cannot break out of its code fence. - Fix the JSON examples in /llms.txt and the per-page footer. Both embedded a union expression inside a JSON string, so an agent copying either one sent invalid JSON and got a 400 before learning the schema. They now show one valid enum value, with the allowed values listed alongside. - GET /api/feedback derives `endpoint` from the request instead of the hard-coded constant, so preview and self-hosted deployments describe the host that served the response. - Strip query and fragment from the stored referer and bound both referer and user-agent, so a token in a referring URL is not persisted. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Website & Docs
The main website and documentation for better-auth.com
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