confirmEnrollment
confirmEnrollment: (
factorType: MFAType,
authSession: string,
authenticationMethodId: string,
options: { userOtpCode?: string },
) => Promise<unknown>
OptionalcustomMessages
customMessages?: Partial<MFAMessages>
enrollMfa
enrollMfa: (
factorType: MFAType,
options: Record<string, string>,
) => Promise<CreateAuthenticationMethodResponseContent>
factorType
factorType: MFAType
onClose
onClose: () => void
onError
onError: (error: Error, stage: "enroll" | "confirm") => void
onSuccess
onSuccess: () => void
OptionalreadOnly
readOnly?: boolean
Optionalschema
schema?: Partial<{ email?: RegExp; phone?: RegExp }>