Skip to main content

refresh_access_token

Function refresh_access_token 

Source
pub(crate) async fn refresh_access_token(
    state: &Arc<Mutex<CliState>>,
    client_id: &str,
    profile_name: &str,
    refresh_token: &str,
) -> Result<String, OperationOutcomeError>
Expand description

Exchanges a refresh token for a new access token, persisting the refreshed tokens to disk.