pub async fn force_refresh() -> Option<String>Expand description
Unconditionally refresh the Parslee bearer, for the reactive 401
path. access_token_refreshing only refreshes inside a proactive
window keyed on the stored expiry — but a token can be revoked or
invalidated server-side before its advertised expiry, and a token
stored without an expiry never enters that window at all. When a live
request is rejected with 401/403, the caller invokes this to mint a
fresh bearer and retry once, instead of letting the failure poison
30-day model health (#313).
Returns the new access token, or None when there is no refresh token
to use or the refresh itself fails. The PARSLEE_ACCESS_TOKEN env
override is authoritative and never refreshed (returns None so the
caller keeps using the injected token).