@auth0/nextjs-auth0 - v4.19.0
    Preparing search index...

    Class PopupCancelledError

    Thrown when the user closes the popup window before completing MFA.

    The SDK polls popup.closed every 500ms to detect manual closure. This is a user-initiated cancellation, not an error condition.

    import { PopupCancelledError } from '@auth0/nextjs-auth0/errors';

    try {
    await mfa.challengeWithPopup({ audience: 'https://api.example.com' });
    } catch (err) {
    if (err instanceof PopupCancelledError) {
    console.log('User cancelled MFA.');
    }
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    Properties

    code: "popup_cancelled" = ...