Function twitch_oauth2::validate_token[][src]

pub async fn validate_token<RE, C, F>(
    http_client: C,
    token: &AccessToken
) -> Result<ValidatedToken, ValidationError<RE>> where
    RE: Error + Send + Sync + 'static,
    C: FnOnce(HttpRequest) -> F,
    F: Future<Output = Result<HttpResponse, RE>>, 
Expand description

Validate this token.

Should be checked on regularly, according to https://dev.twitch.tv/docs/authentication#validating-requests