Skip to main content

common

Enumerations

Classes

Type Aliases

CustomRouteUrl

Ƭ CustomRouteUrl: Object

Type declaration

NameType
_prefix?string
adminUrl?string
backChannelLogout?string
callback?string
loginListener?string
loginPage?string
loginPost?string
logoutCallback?string
logoutPage?string
logoutPost?string
publicDir?string
publicKeys?string
userStatus?string

Defined in

packages/common/src/types.ts:46


Deferred

Ƭ Deferred<T>: Object

Type parameters

Name
T

Type declaration

NameType
promisePromise<T>
reject(reason?: unknown) => void
resolve(value: T | PromiseLike<T>) => void

Defined in

packages/common/src/utils.ts:12


EventListenerFunction

Ƭ EventListenerFunction<Event>: (event: Event, payload?: unknown) => void

Type parameters

Name
Event

Type declaration

▸ (event, payload?): void

Parameters
NameType
eventEvent
payload?unknown
Returns

void

Defined in

packages/common/src/event-listener.ts:2


GeneralResponse

Ƭ GeneralResponse: SuccessResponse | ErrorResponse

Defined in

packages/common/src/types.ts:88


SilentLoginMessage

Ƭ SilentLoginMessage: Object

Type declaration

NameType
data?UserStatusWrapped
eventSilentLoginEvent
tokenstring

Defined in

packages/common/src/types.ts:40


UserStatus

Ƭ UserStatus<Data>: Data & { accessExpires: number ; loggedIn: boolean ; refreshExpires: number ; userInfo: UserinfoResponse | undefined }

Type parameters

NameType
Dataextends Record<string, any> = Record<string, any>

Defined in

packages/common/src/types.ts:3


UserStatusWrapped

Ƭ UserStatusWrapped: Object

Type declaration

NameType
md5string
payloadUserStatus
timestampnumber

Defined in

packages/common/src/types.ts:34

Variables

ConnectorCookieNames

Const ConnectorCookieNames: Readonly<string[]>

Defined in

packages/common/src/connector-cookies.ts:17


ConnectorCookies

Const ConnectorCookies: Readonly<{ ACCESS_TOKEN: `${string}access` ; CODE_VERIFIER: `${string}cv` ; ID_TOKEN: `${string}id` ; LOGOUT_REDIRECT_URI_B64: `${string}logout-redirect-uri` ; REDIRECT_URI_B64: `${string}redirect-uri` ; REFRESH_TOKEN: `${string}refresh` ; REFRESH_TOKEN_EXPIRATION: `${string}refresh-expiration` }>

Defined in

packages/common/src/connector-cookies.ts:7


ConnectorCookiesToKeep

Const ConnectorCookiesToKeep: Readonly<string[]>

Array of cookies to keep after login process is complete *

Defined in

packages/common/src/connector-cookies.ts:20


RouteUrlDefaults

Const RouteUrlDefaults: Required<CustomRouteUrl>

Defined in

packages/common/src/defaults.ts:3


STORAGE_PREFIX_COMBINED

Const STORAGE_PREFIX_COMBINED: string

Defined in

packages/common/src/connector-cookies.ts:5

Functions

deferredFactory

deferredFactory<T>(): Deferred<T>

Type parameters

NameType
Tunknown

Returns

Deferred<T>

Defined in

packages/common/src/utils.ts:17


epoch

epoch(date?): number

Parameters

NameType
dateDate

Returns

number

Defined in

packages/common/src/utils.ts:3


getRoutePath

getRoutePath(route, routePaths?): string

Parameters

NameType
routeRouteEnum
routePaths?CustomRouteUrl

Returns

string

Defined in

packages/common/src/routes.ts:4


isDev

isDev(): boolean

Returns

boolean

Defined in

packages/common/src/utils.ts:6


isObject

isObject(obj): obj is Record<never, never>

Parameters

NameType
objunknown

Returns

obj is Record<never, never>

Defined in

packages/common/src/utils.ts:10