Skip to main content
References

MFA Types

Type Aliases

APIInterface

type APIInterface = object;

Defined in: recipe/multifactorauth/types.ts:118

Properties

PropertyTypeDefined in
resyncSessionAndFetchMFAInfoPUT| undefined | (input) => Promise< | { emails: Record<string, string[] | undefined>; factors: { allowedToSetup: string[]; alreadySetup: string[]; next: string[]; }; phoneNumbers: Record<string, string[] | undefined>; status: "OK"; } | GeneralErrorResponse>recipe/multifactorauth/types.ts:119

APIOptions

type APIOptions = object;

Defined in: recipe/multifactorauth/types.ts:108

Properties

GetAllAvailableSecondaryFactorIdsFromOtherRecipesFunc()

type GetAllAvailableSecondaryFactorIdsFromOtherRecipesFunc = (tenantConfig) => string[];

Defined in: recipe/multifactorauth/types.ts:138

Parameters

ParameterType
tenantConfigTenantConfig

Returns

string[]

GetEmailsForFactorFromOtherRecipesFunc()

type GetEmailsForFactorFromOtherRecipesFunc = (user, sessionRecipeUserId) => 
| {
factorIdToEmailsMap: Record<string, string[]>;
status: "OK";
}
| {
status: "UNKNOWN_SESSION_RECIPE_USER_ID";
};

Defined in: recipe/multifactorauth/types.ts:140

Parameters

ParameterType
userUser
sessionRecipeUserIdRecipeUserId

Returns

| { factorIdToEmailsMap: Record<string, string[]>; status: "OK"; } | { status: "UNKNOWN_SESSION_RECIPE_USER_ID"; }

GetFactorsSetupForUserFromOtherRecipesFunc()

type GetFactorsSetupForUserFromOtherRecipesFunc = (user, userContext) => Promise<string[]>;

Defined in: recipe/multifactorauth/types.ts:136

Parameters

ParameterType
userUser
userContextUserContext

Returns

Promise<string[]>

GetPhoneNumbersForFactorsFromOtherRecipesFunc()

type GetPhoneNumbersForFactorsFromOtherRecipesFunc = (user, sessionRecipeUserId) => 
| {
factorIdToPhoneNumberMap: Record<string, string[]>;
status: "OK";
}
| {
status: "UNKNOWN_SESSION_RECIPE_USER_ID";
};

Defined in: recipe/multifactorauth/types.ts:144

Parameters

ParameterType
userUser
sessionRecipeUserIdRecipeUserId

Returns

| { factorIdToPhoneNumberMap: Record<string, string[]>; status: "OK"; } | { status: "UNKNOWN_SESSION_RECIPE_USER_ID"; }

MFAClaimValue

type MFAClaimValue = object;

Defined in: recipe/multifactorauth/types.ts:36

Properties

PropertyTypeDefined in
cRecord<string, number | undefined>recipe/multifactorauth/types.ts:37
vbooleanrecipe/multifactorauth/types.ts:38

MFARequirementList

type MFARequirementList = (
| {
oneOf: string[];
}
| {
allOfInAnyOrder: string[];
}
| string)[];

Defined in: recipe/multifactorauth/types.ts:26

RecipeInterface

type RecipeInterface = object;

Defined in: recipe/multifactorauth/types.ts:65

Properties

PropertyTypeDefined in
addToRequiredSecondaryFactorsForUser(input) => Promise<void>recipe/multifactorauth/types.ts:95
assertAllowedToSetupFactorElseThrowInvalidClaimError(input) => Promise<void>recipe/multifactorauth/types.ts:66
getFactorsSetupForUser(input) => Promise<string[]>recipe/multifactorauth/types.ts:91
getMFARequirementsForAuth(input) => | Promise<MFARequirementList> | MFARequirementListrecipe/multifactorauth/types.ts:74
getRequiredSecondaryFactorsForUser(input) => Promise<string[]>recipe/multifactorauth/types.ts:93
markFactorAsCompleteInSession(input) => Promise<void>recipe/multifactorauth/types.ts:85
removeFromRequiredSecondaryFactorsForUser(input) => Promise<void>recipe/multifactorauth/types.ts:101

TypeInput

type TypeInput = object;

Defined in: recipe/multifactorauth/types.ts:41

Properties

PropertyTypeDefined in
firstFactors?string[]recipe/multifactorauth/types.ts:42
override?objectrecipe/multifactorauth/types.ts:44
override.apis?(originalImplementation, builder) => APIInterfacerecipe/multifactorauth/types.ts:49
override.functions?(originalImplementation, builder) => RecipeInterfacerecipe/multifactorauth/types.ts:45

TypeNormalisedInput

type TypeNormalisedInput = object;

Defined in: recipe/multifactorauth/types.ts:53

Properties

PropertyTypeDefined in
firstFactors?string[]recipe/multifactorauth/types.ts:54
overrideobjectrecipe/multifactorauth/types.ts:56
override.apis(originalImplementation, builder) => APIInterfacerecipe/multifactorauth/types.ts:61
override.functions(originalImplementation, builder) => RecipeInterfacerecipe/multifactorauth/types.ts:57

Variables

FactorIds

const FactorIds: object;

Defined in: recipe/multifactorauth/types.ts:151

Type Declaration

NameTypeDefault valueDefined in
EMAILPASSWORDstring"emailpassword"recipe/multifactorauth/types.ts:152
LINK_EMAILstring"link-email"recipe/multifactorauth/types.ts:156
LINK_PHONEstring"link-phone"recipe/multifactorauth/types.ts:157
OTP_EMAILstring"otp-email"recipe/multifactorauth/types.ts:154
OTP_PHONEstring"otp-phone"recipe/multifactorauth/types.ts:155
THIRDPARTYstring"thirdparty"recipe/multifactorauth/types.ts:158
TOTPstring"totp"recipe/multifactorauth/types.ts:159
WEBAUTHNstring"webauthn"recipe/multifactorauth/types.ts:153