pub async fn exchange_code(
client: &Client,
token_endpoint: &str,
config: &OidcConfig,
code: &str,
code_verifier: Option<&str>,
) -> Result<OidcTokenResponse, OidcError>Expand description
Exchange an authorization code for tokens.
If code_verifier is Some, includes it for PKCE.