TwurpleAuthenticationGetting dataExamplesFAQMigration

accessTokenIsExpired

Definition

accessTokenIsExpired(token)

Calculates whether the given access token is expired.

A one-minute grace period is applied for smooth handling of API latency.

ParameterTypeRequiredDefaultDescription
token
ExpireableAccessToken

The part of an access token that is required to calculate expiredness.

Aliased type: Pick<AccessToken, "expiresIn" | "obtainmentTimestamp">

none

The access token.

Return type: boolean