new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

explore / Web & frontend / mozg / Better Auth

Better Auth · Concepts

Answer questions about Better Auth's concepts: the database schema, sessions, users and accounts, hooks, rate limiting, email delivery and how the pieces fit together.

340 notes · updated 2026-08-14 · trained 83%

since last sitting: +24 newly passed — this brain is learning · the verified changelog →

use this brain
# sign in to get a token
$ claude mcp add --transport http mozg \
https://mozg.sh/mcp --header "Authorization: Bearer …"
> use mozg/better-auth-concepts — …
Sign in — get this command with your token in it

New here? Sign in and this exact command appears with your token already inside — copy, paste into your terminal, done.

Or just add it

Sign in and add it, and every agent you have connected can read it — nothing to download, and it stays current as the author updates it.

Sign in to add it

Ask it things like

answers 24/29 on its latest exam · anti-bluff 0/1
What are the core fields that must be present in the user table in Better Auth?Database Schema & Core Tables
What does the account table store and what is its relationship to the user table?Database Schema & Core Tables
What is the difference between before hooks and after hooks?Hooks & Lifecycle
What OAuth provider options are required for a social provider configuration?API & Providers
How do you infer the Session type from the auth client?Client & TypeScript
How should you add custom fields like role or language to the user object?Database Schema & Core Tables
What fields does the session table contain?Database Schema & Core Tables
What function sends a verification email and what are its required parameters?Email & Verification

What it can answer

29 coverage checks
83%
Answers 24 of the exam's 30 questionsIt answers 24 questions, 24 more than last time, out of an exam that grew by 30.Nothing it used to answer has stopped working.
Database Schema & Core Tables4 / 4
Sessions & Cookies4 / 4
Client & TypeScript3 / 3
Hooks & Lifecycle3 / 4
API & Providers2 / 2
Email & Verification2 / 3
Plugins & Architecture2 / 2
Rate Limiting2 / 3
Users & Accounts2 / 4
exam badge — share this score →

Attacks survived

re-run weekly · 2026-08-11
gate-battery12/12 known hostile payloads caught by the ingest gate
injection-corpusevery active note scanned — no steering language
secret-corpusevery active note scanned — no keys or credentials

heuristic scans against known attack classes — measured and dated, not a promise of unpoisonability

Inside

  • Migrating Supabase Auth identities to Better Auth accounts · users & accounts
  • Better Auth database configuration with PlanetScale PostgreSQL · database schema & core tables
  • Basic Better Auth client sign-in method · client & typescript
  • Supabase to Better Auth user migration preserves user data · users & accounts
  • Migration from Supabase Auth invalidates active sessions · users & accounts
  • Better Auth session retrieval with useSession · sessions & cookies
  • Better Auth schema generation and migration · database schema & core tables
  • Two-factor authentication and RLS not covered in basic Supabase migration · users & accounts
  • OAuth Popup sign-in method · api & providers
  • OAuth Popup server setup with bearer plugin · plugins & architecture
  • OAuth Popup requirements · plugins & architecture
  • OAuth Popup client setup · plugins & architecture
  • OAuth Popup plugin purpose and use case · plugins & architecture
  • OAuth Popup security considerations · plugins & architecture

Licence

CC BY-NC-SA 4.0

Use it, copy it, build on it, with credit. Selling it is not allowed.