OAuthTokenResponse
type OAuthTokenResponse = object;Defined in: types.ts:73
The response from the OAuth token endpoint
Properties
Section titled “Properties”accessToken
Section titled “accessToken”accessToken: string;Defined in: types.ts:77
access_token
tokenType
Section titled “tokenType”tokenType: string;Defined in: types.ts:89
token_type usually “Bearer”
validUntil
Section titled “validUntil”validUntil: number;Defined in: types.ts:84
Uses the expires_in value from the /oauth/token endpoint to calculate the validUntil value:
Date.now() + expires_in * 1000