UNPKG

supertokens-node

Version:
28 lines (27 loc) 962 B
// @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; }>;