Skip to main content

exchange_code

Function exchange_code 

Source
pub async fn exchange_code(
    http: &Client,
    cfg: &GoogleOAuthConfig,
    code: &str,
    verifier: &str,
    redirect_uri: &str,
) -> ProviderResult<(TokenSet, String)>
Expand description

Exchange an authorization code for tokens; also returns the account’s address from the id token.