Files
better-auth/packages
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-12 15:21:20 -08:00
2026-01-12 15:21:20 -08:00
2026-01-12 15:21:20 -08:00
2026-01-12 15:21:20 -08:00
2026-01-12 15:21:20 -08:00
2026-01-12 15:21:20 -08:00
2026-01-12 15:21:20 -08:00
2026-01-12 15:21:20 -08:00