Skip to main content

exchange_authorization_code

Function exchange_authorization_code 

Source
pub async fn exchange_authorization_code(
    token_endpoint: &str,
    request: AuthorizationCodeRequest,
    client: &OAuthHttpClient,
) -> Result<OAuth2Tokens, OAuthError>
Expand description

Exchanges an authorization code at a token endpoint (advanced / discovery-based flows).