@nuclia/core / Exports / JwtHelper
Class: JwtHelper
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new JwtHelper(token
)
Parameters
Name | Type |
---|---|
token | string |
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
Name | Type |
---|---|
token | string |
Returns
any
Defined in
libs/sdk-core/src/lib/auth/jwt-helpers.ts:88
getJWTUser
▸ getJWTUser(token?
): null
| JwtUser
Parameters
Name | Type |
---|---|
token | string |
Returns
null
| JwtUser
Defined in
libs/sdk-core/src/lib/auth/jwt-helpers.ts:109
getTokenExpirationDate
▸ getTokenExpirationDate(token?
): null
| Date
Parameters
Name | Type |
---|---|
token | string |
Returns
null
| Date
Defined in
libs/sdk-core/src/lib/auth/jwt-helpers.ts:119
isTokenExpired
▸ isTokenExpired(token?
, offsetSeconds?
): boolean
Parameters
Name | Type |
---|---|
token | string |
offsetSeconds? | number |
Returns
boolean
Defined in
libs/sdk-core/src/lib/auth/jwt-helpers.ts:130
urlBase64Decode
▸ urlBase64Decode(str
): string
Parameters
Name | Type |
---|---|
str | string |
Returns
string