Skip to main content

exchange_code

Function exchange_code 

Source
pub async fn exchange_code(
    token_url: &str,
    client_id: &str,
    client_secret: &str,
    code: &str,
    redirect_uri: &str,
) -> Result<OAuthToken, OAuthError>
Expand description

Exchange an authorization code for a token bundle.