Skip to main content

exchange_code

Function exchange_code 

Source
pub async fn exchange_code(
    http: &Client,
    who: &Caller,
    code: &str,
    code_verifier: &str,
    redirect_uri: &str,
    replace: bool,
) -> Result<TokenGrant, BrokerError>
Expand description

Trade an authorization code (with its PKCE verifier) for the user’s grant.