Skip to main content

ensure_fresh_token

Function ensure_fresh_token 

Source
pub async fn ensure_fresh_token(
    client: &Client,
) -> Result<OAuthCredentials, String>
Expand description

Acquire an exclusive lock on auth.json, check token freshness, refresh if needed, and persist the result. Returns the current (possibly refreshed) credentials.