> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# MfaPushChallengePush

> Describes all the properties and methods available to customize the Universal Login `mfa-push-challenge-push` screen.

The MfaPushChallengePush class implements the `mfa-push-challenge-push` screen functionality. This screen is shown when a user needs to confirm a push notification during MFA.

![ACUL MFA Push Challenge Push](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/ja-jp/cdy7uua7fh8z/6n6fftBZDpoT5FdmipebK6/3a777c3c9a87a6f6cf53cf96aab67c8d/Screenshot_2025-02-20_at_22.13.55.png)

## Constructors

Create an instance of MFA Push Challenge Push screen manager:

```typescript Example theme={null}
import MfaPushChallengePush from '@auth0/auth0-acul-js/mfa-push-challenge-push';

const mfaPushChallengePush = new MfaPushChallengePush();
await mfaPushChallengePush.continue();
```

## Properties

**branding** `[BrandingMembers](/docs/libraries/acul/js-sdk/Screens/interfaces/BrandingMembers)`

Provides branding-related configurations, such as branding theme and settings.

**client** `[ClientMembers](/docs/libraries/acul/js-sdk/Screens/interfaces/ClientMembers)`

Provides client-related configurations, such as `id`, `name`, and `logoUrl`, for the `mfa-push-challenge-push` screen.

**countryCodes** `[CountryCodesMembers](/docs/libraries/acul/js-sdk/Screens/interfaces/CountryCodesMembers)`

Provides country code data for phone number entry, such as `available` and `recommended`, for the `mfa-push-challenge-push` screen.

**experiment** `[ExperimentMembers](/docs/libraries/acul/js-sdk/Screens/interfaces/ExperimentMembers)`

The active [Experiment Center](/docs/docs/customize/experiment-center) experiment for this screen, or `null` when no experiment is active (or the screen has not opted in via `context_configuration`).

**organization** `[OrganizationMembers](/docs/libraries/acul/js-sdk/Screens/interfaces/OrganizationMembers)`

Provides information about the user's Organization, such as `id` and `name`.

**prompt** `[PromptMembers](/docs/libraries/acul/js-sdk/Screens/interfaces/PromptMembers)`

Contains data about the current prompt in the authentication flow.

**screen** `[ScreenMembersOnMfaPushChallengePush](/docs/libraries/acul/js-sdk/Screens/interfaces/ScreenMembersOnMfaPushChallengePush)`

Contains details specific to the `mfa-push-challenge-push` screen, including its configuration and context.

**tenant** `[TenantMembers](/docs/libraries/acul/js-sdk/Screens/interfaces/TenantMembers)`

Contains data related to the tenant, such as `id` and associated metadata.

**transaction** `[TransactionMembers](/docs/libraries/acul/js-sdk/Screens/interfaces/TransactionMembers)`

Provides transaction-specific data for the `mfa-push-challenge-push` screen, such as active identifiers and flow states.

**untrustedData** `[UntrustedDataMembersOnMfaPushChallengePush](/docs/libraries/acul/js-sdk/Screens/interfaces/UntrustedDataMembersOnMfaPushChallengePush)`

Handles untrusted data passed to the SDK, such as user input during MFA push challenge.

**user** `[UserMembers](/docs/libraries/acul/js-sdk/Screens/interfaces/UserMembers)`

Details of the active user, including `username`, `email`, and `roles`.

## Methods

**changeLanguage** `Promise\<void\>`

This method changes the display language of the Universal Login page.

```typescript Example theme={null}
import MfaPushChallengePush from '@auth0/auth0-acul-js/mfa-push-challenge-push';
const mfaPushChallengePush = new MfaPushChallengePush();
mfaPushChallengePush.changeLanguage({
  language: 'fr',
});
```

**Method Parameters**

**Parameters**

**options**

[LanguageChangeOptions](/docs/docs/libraries/acul/js-sdk/Screens/interfaces/LanguageChangeOptions).

**language** `string` *required*

The locale code for the desired language (for example, `'en'`, `'fr'`, `'es'`).

**persist?** `"session"`

When set to `'session'`, the selected language persists for the duration of the session.

**continue** `Promise\<void\>`

This method continues with the push notification challenge.

```typescript Example theme={null}
import MfaPushChallengePush from '@auth0/auth0-acul-js/mfa-push-challenge-push';

const mfaPushChallengePush = new MfaPushChallengePush();
await mfaPushChallengePush.continue();
```

**Method Parameters**

**Parameters**

**options**

[WithRememberOptions](/docs/docs/libraries/acul/js-sdk/Screens/interfaces/WithRememberOptions).

**rememberDevice?** `boolean`

Indicates whether to remember the device.

**enterCodeManually** `Promise\<void\>`

This method switches to entering the verification code manually.

```typescript Example theme={null}
import MfaPushChallengePush from '@auth0/auth0-acul-js/mfa-push-challenge-push';

const mfaPushChallengePush = new MfaPushChallengePush();
await mfaPushChallengePush.enterCodeManually();
```

**getErrors** `[Error](/docs/libraries/acul/js-sdk/Screens/interfaces/Error)[]`

This method retrieves the array of transaction errors from the context, or an empty array if none exist.

**pollingManager** `[MfaPushPollingControl](/docs/libraries/acul/js-sdk/Screens/interfaces/MfaPushPollingControl)`

This method starts and manages polling for an MFA push challenge.

Creates a polling session that repeatedly checks the MFA push challenge endpoint at the specified interval until the challenge is approved or an error occurs. When the approval condition is met, the provided [onCompleted](/docs/docs/libraries/acul/js-sdk/Screens/type-aliases/MfaPollingOptions#oncompleted) callback is invoked and polling stops automatically.

Use the returned [MfaPushPollingControl](/docs/docs/libraries/acul/js-sdk/Screens/interfaces/MfaPushPollingControl) to start, stop, or check the status of the polling process at any time.

Returns an [MfaPushPollingControl](/docs/docs/libraries/acul/js-sdk/Screens/interfaces/MfaPushPollingControl) instance exposing:

* `startPolling()` — Starts or resumes polling.
* `stopPolling()` — Cancels polling immediately.
* `isRunning()` — Indicates whether polling is currently active.

```typescript Example theme={null}
import MfaPushChallengePush from '@auth0/auth0-acul-js/mfa-push-challenge-push';

const mfaPushChallengePush = new MfaPushChallengePush();

// Start polling every 5 seconds until the push challenge is approved
const control = mfaPushChallengePush.pollingManager({
  intervalMs: 5000,
  onCompleted: () => mfaPushChallengePush.continue(),
  onError: (error) => console.error('Polling error:', error),
});

// Later, cancel polling if needed
control.stopPolling();
```

**Remarks**

* HTTP 429 (rate limit) responses are handled internally: polling automatically waits until the rate limit resets before retrying.
* Safe to call `startPolling()` multiple times; it has no effect if already running.

**Method Parameters**

**Parameters**

**options**

[MfaPollingOptions](/docs/docs/libraries/acul/js-sdk/Screens/type-aliases/MfaPollingOptions).

**intervalMs?** `number`

Optional interval, in milliseconds, between consecutive polling requests. If omitted, the SDK's internal default interval is used (typically 5000 ms).

**onCompleted()?** `() =\> void`

Optional callback executed once the MFA push challenge is successfully approved and polling completes. Called exactly once, after which polling stops automatically.

**onError()?** `(error) =\> void`

Optional callback invoked if an error occurs while polling. Receives an `ULError` object containing `status` (HTTP status code) and `responseText` (raw response body).

**resendPushNotification** `Promise\<void\>`

Resends the push notification to the user's mobile device.

This method submits a form that asks Auth0 to send a new push notification. Auth0 renders this screen again, so the browser reloads the page and the JavaScript context, including component state, timers, and active polling, is lost.

When you call `resendPushNotification()`, keep the following in mind:

* Code that runs after `await resendPushNotification()` can't rely on state that the code sets, such as a "notification sent" message.
* Server-side errors appear in `transaction.errors` after the page reloads. These errors don't reject the returned promise.
* The returned promise resolves when the form is submitted, before the page reloads. The promise doesn't confirm that Auth0 sent a new notification.

```typescript Example theme={null}
import MfaPushChallengePush from '@auth0/auth0-acul-js/mfa-push-challenge-push';

const mfaPushChallengePush = new MfaPushChallengePush();
await mfaPushChallengePush.resendPushNotification();
```

**Method Parameters**

**Parameters**

**options**

[WithRememberOptions](/docs/docs/libraries/acul/js-sdk/Screens/interfaces/WithRememberOptions).

**rememberDevice?** `boolean`

Indicates whether to remember the device.

**tryAnotherMethod** `Promise\<void\>`

This method allows the user to try another MFA method.

```typescript Example theme={null}
import MfaPushChallengePush from '@auth0/auth0-acul-js/mfa-push-challenge-push';

const mfaPushChallengePush = new MfaPushChallengePush();
await mfaPushChallengePush.tryAnotherMethod();
```
