{}
The access token which is necessary for every request to the Twitch API.
accessToken: string
The time, in seconds from the obtainment date, when the access token expires.
expiresIn: number | null
The date when the token was obtained, in epoch milliseconds.
obtainmentTimestamp: number
The refresh token which is necessary to refresh the access token once it expires.
refreshToken: string | null
The scope the access token is valid for, i.e. what the token enables you to do.
scope: string[]
Properties
expiresIn
Type: number | null
The time, in seconds from the obtainment date, when the access token expires.
May be null
, in which case the token does not expire.
This can only be the case with very old Client IDs.
This does not honor the expiry grace period; it contains the exact value from Twitch.
refreshToken
Type: string | null
The refresh token which is necessary to refresh the access token once it expires.