Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
function EnrollMfa(props: EnrollMfaProps): Element;
props
EnrollMfaProps
Element
// Default usage <EnrollMfa onEnrollSuccess={() => console.log("Enrolled!")} />
// With custom UI <EnrollMfa onEnrollSuccess={onEnrollSuccess}> {(state) => ( <> <h1>{state.step === "list" ? "Multi-factor authentication" : "Add new method"}</h1> <EnrollMfaTitle /> <EnrollMfaDescription /> {state.step === "list" && <EnrollMfaError />} <EnrollMfaFlow /> </> )} </EnrollMfa>
Was this page helpful?