Skip to main content

refresh_grant

Function refresh_grant 

Source
pub async fn refresh_grant(
    spec: &ProviderOAuthSpec,
    refresh_token: &str,
) -> Result<RefreshedTokens>
Expand description

Exchange a stored refresh_token for fresh access tokens at spec.token_url.

Sends grant_type=refresh_token per RFC 6749 §6 with only the public client_id — this CLI is a public PKCE client by design and never carries a client_secret. Returns the parsed RefreshedTokens.