const MAX_CACHE_TTL: Duration;Expand description
Upper bound on cache TTL, independent of the token’s own expiry.
A cache hit skips every authorization check in resolve_oauth_user, so this bounds how long a
change goes unnoticed when nothing evicts for it. Revocation, refresh-family reuse, consent
withdrawal and user deletion all evict; these do not:
- a grant narrowed by a new consent, which keeps its tokens and only caps their scopes;
- a hard
DELETE FROM users/oauth_clients, whoseON DELETE CASCADEintooauth_access_tokensruns no Rust; oauth_clientschanges (bearer_allowed = false, soft delete, narrowedscopes), which have no Rust mutator to evict from.
For those this bound is the only guard, which is why it is minutes and not an hour.