DiscordOAuthToken
Defined in: oauth/oauth.type.ts:23
The token Discord returns from the OAuth2 token endpoint.
Properties
Section titled “Properties”access_token
Section titled “access_token”access_token:
string
Defined in: oauth/oauth.type.ts:25
The access token to send as a bearer.
expires_in
Section titled “expires_in”expires_in:
number
Defined in: oauth/oauth.type.ts:29
Seconds until access_token stops working.
refresh_token?
Section titled “refresh_token?”
optionalrefresh_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
Section titled “token_type”token_type:
string
Defined in: oauth/oauth.type.ts:27
The token type, Bearer.