Skip to main content

authenticationUtils

Api Code Documentation / Exports / authenticationUtils

Table of contents

Variables

Functions

Variables

accessTokenExpirationInHoursWithrefreshToken

Const accessTokenExpirationInHoursWithrefreshToken: number = config.accessTokenExpiration

Defined in

src/authenticationUtils.ts:6


refreshTokenExpirationInHours

Const refreshTokenExpirationInHours: number = config.refreshTokenExpiration

Defined in

src/authenticationUtils.ts:5

Functions

createRefreshJWTToken

createRefreshJWTToken(payload, key, algorithm?): string

Creates a refresh JWT Token

Parameters

NameTypeDefault value
payloadObjectundefined
keystringundefined
algorithm"HS256" | "RS256""HS256"

Returns

string

a string containing the encoded JWT token

Defined in

src/authenticationUtils.ts:14