Constimport { mfa } from '@auth0/nextjs-auth0/client';
// List authenticators
const authenticators = await mfa.getAuthenticators({ mfaToken });
// Initiate challenge
const challenge = await mfa.challenge({ mfaToken, challengeType: 'oob' });
// Verify and complete
const tokens = await mfa.verify({ mfaToken, otp: '123456' });
// Step-up via popup (no redirect)
const { token } = await mfa.challengeWithPopup({
audience: 'https://api.example.com'
});
Client-side MFA API singleton.
Provides methods for MFA authenticator management, challenge/verify flows, and popup-based step-up authentication via Universal Login.