mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +00:00
* feat(auth): cache OpenID JWT user documents * fix(auth): invalidate cached auth users on role changes
293 B
293 B
See CLAUDE.md.
When adding or changing code that mutates user documents, invalidate the auth user document cache for affected users. This includes single-user updates and bulk role/user mutations; otherwise OpenID JWT request burst caching can serve a stale req.user until its TTL expires.