Function verify_credentials

Source
pub async fn verify_credentials(
    instance_domain: &str,
    access_token: &str,
) -> Result<Account, Error>
Expand description

Verify an obtained token and obtain information about the user.

§Errors

This method fails if there was an issue connecting to the instance, or if the access_token is invalid.

§Example

let token = auth::get_auth_token("mastodon.art", "[CODE]", &app, &app_info).await?;