Skip to main content

exchange_password_with_tmc

Function exchange_password_with_tmc 

Source
pub async fn exchange_password_with_tmc(
    client: &OAuthClient,
    email: String,
    password: SecretString,
) -> Result<Option<SecretString>>
Expand description

Exchanges user credentials with TMC for an OAuth token.

Ok(None) means the credentials were rejected; other failures (network, server errors) are Err.