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

RefreshConfig

Configuration for the RefreshableAuthProvider.

{
The client secret of your application.
clientSecret: string
The date of expiry of your access token.
expiry?: Date | null
A callback that is called whenever the auth provider refreshes the token, e.g. to save the new data in your database.
onRefresh?: (token: AccessToken) => void
The refresh token you got when requesting an access token from Twitch.
refreshToken: string
}

Properties

clientSecret

Type: string

The client secret of your application.

expiry

Type: Date | null

The date of expiry of your access token.

onRefresh

Type: ?(token: AccessToken) => void

A callback that is called whenever the auth provider refreshes the token, e.g. to save the new data in your database.

refreshToken

Type: string

The refresh token you got when requesting an access token from Twitch.