pub fn exchange_code(&self, code: AuthorizationCode) -> CodeTokenRequest<TE, TR, TT> {
        CodeTokenRequest {
            auth_type: &self.auth_type,
            client_id: &self.client_id,
            client_secret: self.client_secret.as_ref(),
            code,
            extra_params: Vec::new(),
            pkce_verifier: None,
            token_url: self.token_url.as_ref(),
            redirect_url: self.redirect_url.as_ref().map(Cow::Borrowed),
            _phantom: PhantomData,
        }
    }
///
/// Exchanges a code produced by a successful authorization process with an access token.
///
/// Acquires ownership of the `code` because authorization codes may only be used once to
/// retrieve an access token from the authorization server.
///
/// See https://tools.ietf.org/html/rfc6749#section-4.1.3
///
Exchanges a code produced by a successful authorization process with an access token.
Acquires ownership of the `code` because authorization codes may only be used once to
retrieve an access token from the authorization server.


Exchanges a code produced by a successful authorization process with an access token . Acquires ownership of the ` code ` because authorization codes may only be used once to retrieve an access token from the authorization server .
pub fn exchange_code(&self, code: AuthorizationCode) -> CodeTokenRequest<TE, TR, TT> {
        CodeTokenRequest {
            auth_type: &self.auth_type,
            client_id: &self.client_id,
            client_secret: self.client_secret.as_ref(),
            code,
            extra_params: Vec::new(),
            pkce_verifier: None,
            token_url: self.token_url.as_ref(),
            redirect_url: self.redirect_url.as_ref().map(Cow::Borrowed),
            _phantom: PhantomData,
        }
    }
pub fn exchange_code ( & self , code : AuthorizationCode ) -> CodeTokenRequest < TE , TR , TT > { CodeTokenRequest { auth_type : & self . auth_type , client_id : & self . client_id , client_secret : self . client_secret . as_ref ( ) , code , extra_params : Vec :: new ( ) , pkce_verifier : None , token_url : self . token_url . as_ref ( ) , redirect_url : self . redirect_url . as_ref ( ) . map ( Cow :: Borrowed ) , _phantom : PhantomData , } }
Exchanges a code produced by a successful authorization process with an access token.
Exchanges a code produced by a successful authorization process with an access token .
&self
code
AuthorizationCode
&self
code
AuthorizationCode