📉 perf: cache OpenID JWT user documents (#14187)

* feat(auth): cache OpenID JWT user documents

* fix(auth): invalidate cached auth users on role changes
This commit is contained in:
Ravi Kumar L 2026-07-12 13:53:50 +02:00 • committed by GitHub
parent b753da163e
commit 329ed48246
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 947 additions and 24 deletions

View file

@ -63,6 +63,7 @@ const namespaces = {
CacheKeys.OPENID_EXCHANGED_TOKENS,
Time.TEN_MINUTES,
),
[CacheKeys.AUTH_USER_DOC]: standardCache(CacheKeys.AUTH_USER_DOC),
[CacheKeys.ADMIN_OAUTH_EXCHANGE]: standardCache(
CacheKeys.ADMIN_OAUTH_EXCHANGE,
Time.THIRTY_SECONDS,