kient / Token
Class: Token
Response when generating an authorisation token
Properties
Property | Type | Description | Defined in |
---|---|---|---|
accessToken | string | The access token | src/structures/token.ts:15 |
expiresIn | number | The seconds until the access token expires | src/structures/token.ts:30 |
refreshToken? | string | The refresh token used to get a new access token | src/structures/token.ts:25 |
scope? | string | A string of space seperated scopes available to this token | src/structures/token.ts:35 |
tokenType | "Bearer" | The type of token presented | src/structures/token.ts:20 |
Accessors
isAppToken
Get Signature
ts
get isAppToken(): boolean
Returns true if the token is an app token type
Returns
boolean
scopes
Get Signature
ts
get scopes(): KientScope[]
An array of scopes available to this token
Returns
Methods
toJSON()
ts
toJSON(): ExcludeFunctionsAndPrivate<Token>