Skip to main content

get_token_at

Function get_token_at 

Source
pub async fn get_token_at(
    url: &str,
    client_id: u32,
    client_secret: &str,
    code: &str,
) -> Result<TokenResponse, ErrorWrapper>
Expand description

Same as get_token but against a caller-supplied URL. Useful for integration tests (pointing at httpmock) or for staging/dev OAuth hosts.