Thrown when mfa.challengeWithPopup is called while another popup is already active.
Only one popup flow is allowed at a time, regardless of audience. Wait for the current popup to complete or be cancelled before starting another.
import { PopupInProgressError } from '@auth0/nextjs-auth0/errors';try { await mfa.challengeWithPopup({ audience: 'https://api.example.com' });} catch (err) { if (err instanceof PopupInProgressError) { console.log('Complete the current MFA prompt first.'); }} Copy
import { PopupInProgressError } from '@auth0/nextjs-auth0/errors';try { await mfa.challengeWithPopup({ audience: 'https://api.example.com' });} catch (err) { if (err instanceof PopupInProgressError) { console.log('Complete the current MFA prompt first.'); }}
Optional
Thrown when mfa.challengeWithPopup is called while another popup is already active.
Only one popup flow is allowed at a time, regardless of audience. Wait for the current popup to complete or be cancelled before starting another.
Example