twitcheasy-twitch-bottwitch-authtwitch-auth-tmitwitch-chat-clienttwitch-eventsubtwitch-pubsub-clienttwitch-webhooks

AccessToken

Represents the data of an OAuth access token returned by Twitch.

Overview

Properties

accessToken

Type: string

The access token which is necessary for every request to the Twitch API.

expiryDate

Type: Date | null

The time when the access token will expire.

May be null, in which case the token does not expire. This can only be the case with very old Client IDs.

isExpired

Type: boolean

refreshToken

Type: string

The refresh token which is necessary to refresh the access token once it expires.

scope

Type: Array<string>

The scope the access token is valid for, i.e. what the token enables you to do.