supertokens-node
Version:
NodeJS driver for SuperTokens core
23 lines (22 loc) • 856 B
TypeScript
// @ts-nocheck
import { TypeInput, TypeNormalisedInput, MFAClaimValue, MFARequirementList } from "./types";
import { UserContext } from "../../types";
import { SessionContainerInterface } from "../session/types";
import { RecipeUserId } from "../..";
import type SuperTokens from "../../supertokens";
export declare function validateAndNormaliseUserInput(config?: TypeInput): TypeNormalisedInput;
export declare const updateAndGetMFARelatedInfoInSession: (input: ({
sessionRecipeUserId: RecipeUserId;
tenantId: string;
accessTokenPayload: any;
} | {
session: SessionContainerInterface;
}) & {
updatedFactorId?: string;
stInstance: SuperTokens;
userContext: UserContext;
}) => Promise<{
completedFactors: MFAClaimValue["c"];
mfaRequirementsForAuth: MFARequirementList;
isMFARequirementsForAuthSatisfied: boolean;
}>;