Skip to content

DiscordOAuthToken

Defined in: oauth/oauth.type.ts:23

The token Discord returns from the OAuth2 token endpoint.

access_token: string

Defined in: oauth/oauth.type.ts:25

The access token to send as a bearer.


expires_in: number

Defined in: oauth/oauth.type.ts:29

Seconds until access_token stops working.


optional refresh_token?: string

Defined in: oauth/oauth.type.ts:31

The token that can be exchanged for a new access token.


scope: string

Defined in: oauth/oauth.type.ts:33

The scopes granted, space separated.


token_type: string

Defined in: oauth/oauth.type.ts:27

The token type, Bearer.