Skip to main content

@nuclia/core / Exports / JwtHelper

Class: JwtHelper

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new JwtHelper(token)

Parameters

NameType
tokenstring

Defined in

libs/sdk-core/src/lib/auth/jwt-helpers.ts:19

Properties

token

token: string

Defined in

libs/sdk-core/src/lib/auth/jwt-helpers.ts:17

Methods

decodeToken

decodeToken(token?): any

Parameters

NameType
tokenstring

Returns

any

Defined in

libs/sdk-core/src/lib/auth/jwt-helpers.ts:88


getJWTUser

getJWTUser(token?): null | JwtUser

Parameters

NameType
tokenstring

Returns

null | JwtUser

Defined in

libs/sdk-core/src/lib/auth/jwt-helpers.ts:109


getTokenExpirationDate

getTokenExpirationDate(token?): null | Date

Parameters

NameType
tokenstring

Returns

null | Date

Defined in

libs/sdk-core/src/lib/auth/jwt-helpers.ts:119


isTokenExpired

isTokenExpired(token?, offsetSeconds?): boolean

Parameters

NameType
tokenstring
offsetSeconds?number

Returns

boolean

Defined in

libs/sdk-core/src/lib/auth/jwt-helpers.ts:130


urlBase64Decode

urlBase64Decode(str): string

Parameters

NameType
strstring

Returns

string

Defined in

libs/sdk-core/src/lib/auth/jwt-helpers.ts:23