Files
better-auth/docs
Claude cf56e27a5d docs: add warning that enableSessionForAPIKeys creates mock sessions
Clarify that enableSessionForAPIKeys creates mock sessions (not real
database-stored sessions) with important limitations:

- Mock sessions don't include dynamically computed properties
- Admin plugin's adminUserIds won't set role to admin in mock sessions
- Plugin hooks may not fire as expected
- Security risk if API key is leaked

Added detailed documentation explaining how mock sessions work, their
limitations, and guidance on when to use this feature vs alternatives.

Closes #7312
2026-01-13 04:42:27 +00:00
..
2026-01-06 12:53:55 +08:00
2026-01-06 12:53:55 +08:00
2026-01-06 12:53:55 +08:00
…
2026-01-03 16:55:39 +08:00
2026-01-06 12:53:55 +08:00
2026-01-06 12:53:55 +08:00

Better Auth Docs

This is the documentation site for Better Auth.

Contributing

To contribute to the docs, you can clone the repo and run the docs site locally.

pnpm install
pnpm run dev

This will start the docs site on http://localhost:3000.