interface TokenData {
    expire_time?: ExpireTimeOption;
    middleware?: string;
    name: string;
    permission: PermissionOption;
    serie_number?: string;
    verification_code?: string;
}

Hierarchy (view full)

Properties

expire_time?: ExpireTimeOption

The time for when the token should expire. It will be randomly generated if not included. Accepts “never” as value.

middleware?: string

[optional] Middleware or type of the device that will be added.

name: string

A name for the token.

permission: PermissionOption

Token permission should be 'write', 'read' or 'full'.

serie_number?: string

[optional] The serial number of the device.

verification_code?: string

[optional] Verification code to validate middleware requests.