Skip to main content

exchange_trip_code

Function exchange_trip_code 

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

Trade the code an install trip came back with (and the trip’s state) for the user’s grant.