Definition
getExpiryDateOfAccessToken(token)
Calculates the date when the access token will expire.
A one-minute grace period is applied for smooth handling of API latency.
May be null
, in which case the token does not expire.
This can only be the case with very old Client IDs.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
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: Date | null