supertokens-web-js
Version:
SuperTokens SDK for vanilla JS for all recipes
11 lines (10 loc) • 354 B
TypeScript
import { InputType, MFAClaimValue, MFARequirement, NormalisedInputType } from "./types";
export declare function normaliseUserInput(config: InputType): NormalisedInputType;
export declare function checkFactorRequirement(
req: MFARequirement,
completedFactors: MFAClaimValue["c"]
): {
id: string;
isValid: boolean;
message: string;
};