Skip to main content

FactorsStore

@quik/mfa


@quik/mfa / FactorsStore

Variable: FactorsStore

const FactorsStore: object

Defined in: mfa/src/store/factors.ts:56

MFA factors registry facade with concise method names.

Type Declaration

all

all: () => Record<string, IQMFAFactor> = allFactors

Returns all registered factors as a plain object.

Returns

Record<string, IQMFAFactor>

clear

clear: () => void = clearFactors

Clears all registered factors.

Returns

void

get

get: (method) => IQMFAFactor = getFactor

Returns the factor for one method key.

Parameters

method

string

Factor method key.

Returns

IQMFAFactor

Throws

QTranslatableError When no factor is registered for the method.

has

has: (method) => boolean = hasFactor

Returns whether a factor is registered for one method key.

Parameters

method

string

Factor method key.

Returns

boolean

register

register: (factor) => void = registerFactor

Registers a factor instance by its method key.

Parameters

factor

IQMFAFactor

Factor implementation.

Returns

void