Skip to main content

EXPIRY_SLACK_MS

Constant EXPIRY_SLACK_MS 

Source
const EXPIRY_SLACK_MS: i64 = 5_000;
Expand description

Milliseconds of slack subtracted from a token’s real expiry before treating a cached entry as usable, so a cache hit doesn’t get used moments before the server would reject it anyway. Mirrors the legacy CLI’s 5-second threshold (SendAccessToken.isExpired).