Skip to main content

authenticationUtils

Api Code Documentation / Exports / authenticationUtils

Table of contents

Variables

Functions

Variables

accessTokenExpirationInMinutesWithrefreshToken

Const accessTokenExpirationInMinutesWithrefreshToken: 10

Defined in

src/authenticationUtils.ts:6


refreshTokenExpirationInDays

Const refreshTokenExpirationInDays: 8

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