Thrown when the popup does not complete authentication within the configured timeout.
Default timeout is 60 seconds. Configure per-call via ChallengeWithPopupOptions.timeout.
ChallengeWithPopupOptions.timeout
import { PopupTimeoutError } from '@auth0/nextjs-auth0/errors';try { await mfa.challengeWithPopup({ audience: 'https://api.example.com', timeout: 120000 });} catch (err) { if (err instanceof PopupTimeoutError) { console.log('MFA timed out. Please try again.'); }} Copy
import { PopupTimeoutError } from '@auth0/nextjs-auth0/errors';try { await mfa.challengeWithPopup({ audience: 'https://api.example.com', timeout: 120000 });} catch (err) { if (err instanceof PopupTimeoutError) { console.log('MFA timed out. Please try again.'); }}
Optional
Thrown when the popup does not complete authentication within the configured timeout.
Default timeout is 60 seconds. Configure per-call via
ChallengeWithPopupOptions.timeout.Example