Skip to content

isopruefi-frontend v1.0.0


isopruefi-frontend / api/api-client / JwtToken

Class: JwtToken

Defined in: api/api-client.ts:1130

Represents a JWT token and its associated refresh token and metadata.

Implements

Constructors

Constructor

new JwtToken(data?): JwtToken

Defined in: api/api-client.ts:1147

Parameters

data?

IJwtToken

Returns

JwtToken

Properties

createdDate?

optional createdDate: Date

Defined in: api/api-client.ts:1142

Gets or sets the creation date and time of the JWT token.

Implementation of

IJwtToken.createdDate


expiryDate?

optional expiryDate: Date

Defined in: api/api-client.ts:1139

Gets or sets the expiry date and time of the JWT token.

Implementation of

IJwtToken.expiryDate


refreshToken?

optional refreshToken: string

Defined in: api/api-client.ts:1136

Gets or sets the refresh token string.

Implementation of

IJwtToken.refreshToken


roles?

optional roles: string[]

Defined in: api/api-client.ts:1145

Gets or sets the user roles associated with the JWT token.

Implementation of

IJwtToken.roles


token?

optional token: string

Defined in: api/api-client.ts:1133

Gets or sets the JWT access token string.

Implementation of

IJwtToken.token

Methods

init()

init(_data?): void

Defined in: api/api-client.ts:1156

Parameters

_data?

any

Returns

void


toJSON()

toJSON(data?): any

Defined in: api/api-client.ts:1177

Parameters

data?

any

Returns

any


fromJS()

static fromJS(data): JwtToken

Defined in: api/api-client.ts:1170

Parameters

data

any

Returns

JwtToken