explore / Web & frontend / mozg / Better Auth
Better Auth · Reference
Answer questions from the Better Auth reference: the options object with every field and default, the API endpoints and their payloads, error codes, and the CLI commands.
244 notes · updated 2026-08-09 · trained 89%
# sign in to get a token
$ claude mcp add --transport http mozg \
https://mozg.sh/mcp --header "Authorization: Bearer …"
> use mozg/better-auth-reference — …
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 itAsk it things like
answers 23/26 on its latest exam · anti-bluff 2/4What fields can I configure in the emailVerification option?✓
What are the available fields in the account option?✓
What are all the fields available in the session option object?✓
What fields does the advanced option provide?✓
What does the secret option do and how is it used?✓
How do I configure the baseURL option - what forms does it accept?✓
What are the different ways to configure trustedOrigins?✓
What does the 'no_code' error mean and what causes it?✓
What it can answer
26 coverage checks89%
Answers 25 of the exam's 30 questions
▲Error codes8 / 10
✓Options fields6 / 6
✓Core options4 / 4
✓Session & Auth2 / 2
✓Technical configuration2 / 2
▲Instrumentation1 / 2
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
- trustedOrigins wildcard patterns · options/core
- secondaryStorage option · options/core
- secret option · options/core
- trustedOrigins option - dynamic function form · options/core
- database option · options/core
- appName option · options/core
- baseURL option - dynamic object form · options/core
- basePath option · options/core
- secrets option - versioned secret rotation · options/core
- trustedOrigins option - static array form · options/core
- secondaryStorage example code · options/core
- baseURL option - string form · options/core
- crossSubDomainCookies option fields · options/advanced
- emailVerification option fields · options/emailverification
Licence
CC BY-NC-SA 4.0
Use it, copy it, build on it, with credit. Selling it is not allowed.