Skip to main content
Version: 1.18.x

Token

Defined in: messages/Token.ts:62

Information about an access token

Constructors​

Constructor​

> new Token(): Token

Returns​

Token

Properties​

createdAt​

> readonly createdAt: number = 0

Defined in: messages/Token.ts:71

Creation time of the token as unix timestamp in milliseconds


isProvisioned?​

> readonly optional isProvisioned: boolean = false

Defined in: messages/Token.ts:76

Is the token provisioned, and you can't remove it or change it


name​

> readonly name: string = ""

Defined in: messages/Token.ts:66

Name of the token


permissions?​

> readonly optional permissions: TokenPermissions

Defined in: messages/Token.ts:81

Permissions of the token

Methods​

parse()​

> static parse(data): Token

Defined in: messages/Token.ts:83

Parameters​

data​

OriginalTokenInfo

Returns​

Token