Skip to main content

exchange_code

Function exchange_code 

Source
pub async fn exchange_code(
    api_base: &str,
    client_id: &str,
    redirect_uri: &str,
    code: &str,
    verifier: &str,
) -> Result<TokenSet, String>
Expand description

Exchange an authorization code + PKCE verifier for tokens.