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 getEnrolledMfaMethods(user: User): MfaMethod[];
user
User
MfaMethod
const user = await getCurrentUser(); const methods = getEnrolledMfaMethods(user); // methods = ['totp', 'sms'] if (methods.length > 1) { // Prompt user to choose which method to use const selectedMethod = await promptUser(methods); await initiateMfaVerification({ mfaMethod: selectedMethod }); }
Was this page helpful?