FactorsStore
@quik/mfa / FactorsStore
Variable: FactorsStore
constFactorsStore: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
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
Factor implementation.
Returns
void