pub const NEEDS_REAUTH_THRESHOLD: u32 = 5;Expand description
After this many consecutive TRANSIENT refresh failures the server answered
(5xx, rate limits, unparseable replies), a credential moves to
NeedsReauth { rejected: false }. An unreachable server never counts
(RefreshErrorKind::Unreachable). The sweep keeps retrying a credential
that wasn’t refused; ensure_fresh (on-demand, e.g. right before a
reconnect attempt) re-checks freshness from any NeedsReauth: if an
external login has since succeeded, is_fresh() will report true and state
naturally moves back to Fresh. No explicit “clear” API needed.