[][src]Function twitch_oauth2::refresh_token

pub async fn refresh_token<'_, '_>(
    refresh_token: RefreshToken,
    client_id: &'_ ClientId,
    client_secret: &'_ ClientSecret
) -> Result<(AccessToken, Option<Instant>, Option<RefreshToken>), RefreshTokenError>

Refresh the token, call if it has expired.

See https://dev.twitch.tv/docs/authentication#refreshing-access-tokens