# Can I trigger MFA in Auth0 without redirecting to Auth0’s MFA page

**URL:** <https://community.auth0.com/t/can-i-trigger-mfa-in-auth0-without-redirecting-to-auth0-s-mfa-page/190609>\
**Category:** Get Help\
**Tags:** mfa\
**Created:** [August 14, 2025, 12:06pm UTC](https://community.auth0.com/t/can-i-trigger-mfa-in-auth0-without-redirecting-to-auth0-s-mfa-page/190609 "2025-08-14T12:06:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nihalm5930](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nihalm5930/32/71410_2.png) [@nihalm5930](https://community.auth0.com/u/nihalm5930)\
**Post date:** [August 14, 2025, 12:06pm UTC](https://community.auth0.com/t/can-i-trigger-mfa-in-auth0-without-redirecting-to-auth0-s-mfa-page/190609/1 "2025-08-14T12:06:44Z")

</div>

Hi,  
I am working on a project where I need to trigger MFA for a user but **without redirecting them to Auth0’s default MFA screen**.

**My requirements:**

- I want to fully customize the MFA UI and host it on my own domain.
- I do not want the user to see Auth0’s MFA challenge page.
- I want to handle OTP input and verification completely via API calls from my backend/frontend.

**What I tried:**

- Using `/mfa/challenge` API requires a `mfa_token`, which seems to be generated only after Auth0’s login flow redirects to the MFA page.
- I tried obtaining a `mfa_token` directly via Management API or Resource Owner Password Grant, but it seems restricted.

**My question:**  
Is there a way to:

1. Initiate MFA programmatically via API **without** redirecting the user to Auth0’s hosted MFA challenge screen?
2. Obtain a `mfa_token` directly after user authentication, so I can call `/mfa/challenge` and `/mfa/verify` on my own custom screen?

If this is not possible, please confirm so I can adjust my architecture accordingly.

---

<div class="post-metadata">

**Author:** ![christina.johnson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/christina.johnson/32/58668_2.png) [@christina.johnson](https://community.auth0.com/u/christina.johnson)\
**Post date:** [August 15, 2025, 8:22pm UTC](https://community.auth0.com/t/can-i-trigger-mfa-in-auth0-without-redirecting-to-auth0-s-mfa-page/190609/2 "2025-08-15T20:22:34Z")

</div>

Hi @nihalm5930  
Welcome to the Auth0 Community! I have moved this question to our [Get Help category](https://community.auth0.com/c/help/6) so one of our community engineers can assist you. For additional help in the future, please search for answers first, and if you need further assistance, please post in our Get Help category, as our community engineers track incoming inquiries.

Thanks,  
Christina

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [August 15, 2025, 10:25pm UTC](https://community.auth0.com/t/can-i-trigger-mfa-in-auth0-without-redirecting-to-auth0-s-mfa-page/190609/4 "2025-08-15T22:25:32Z")

</div>

Hi @nihalm5930,

Welcome to the Auth0 Community!

You desired use case is definitely achievable through the [Use of the MFA API](https://auth0.com/docs/secure/multi-factor-authentication/customize-mfa#use-the-mfa-api). To call the MFA API to manage enrollments you first need to [Get MFA API access tokens](https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authenticator-factors-mfa-api#get-mfa-api-access-tokens). This documentation specifically states about your mentioned scenario:

> If you are building a user interface to manage authentication factors, you’ll need to obtain a token you can use for the MFA API.

You will have to follow the steps mentioned in the [Authenticate Using the Resource Owner Password Flow with MFA](https://auth0.com/docs/secure/multi-factor-authentication/authenticate-using-ropg-flow-with-mfa) documentation, so this would look similar to:

1. **Authenticate the User**. After the user enters their credentials, the response will include the `mfa_token`:

```auto
{
  "error": "mfa_required",
  "error_description": "Multifactor authentication required",
  "mfa_token": "YOUR_MFA_TOKEN"
}

```

1. **Initiate the MFA Challenge**. On your custom MFA screen, use the obtained `mfa_token` to request the challenge.
2. **Verify the MFA Code**. Send a final request to the `/oauth/token` endpoint to verify the code and get the final tokens.

I would also mention that using the ROPG flow is highly discouraged, so you can also check - [Avoid Common Issues with Resource Owner Password Flow and Attack Protection](https://auth0.com/docs/get-started/authentication-and-authorization-flow/resource-owner-password-flow/avoid-common-issues-with-resource-owner-password-flow-and-attack-protection).

In order for you to send the users to your customized MFA page, you can use the [Redirect with Actions](https://auth0.com/docs/customize/actions/explore-triggers/signup-and-login-triggers/login-trigger/redirect-with-actions) extensibility, which allows you to redirect an user after they have authenticated with the user and password, but before MFA was triggered or tokens were issued. You can also check the schema for [Redirect Actions for Partners](https://auth0.com/docs/customize/actions/explore-triggers/signup-and-login-triggers/login-trigger/redirect-with-actions) for a better understanding of the flow.

I hope this helps!  
Kind regards,  
Remus

---

<div class="post-metadata">

**Author:** ![nihalm5930](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nihalm5930/32/71410_2.png) [@nihalm5930](https://community.auth0.com/u/nihalm5930)\
**Post date:** [August 17, 2025, 4:40am UTC](https://community.auth0.com/t/can-i-trigger-mfa-in-auth0-without-redirecting-to-auth0-s-mfa-page/190609/5 "2025-08-17T04:40:11Z")

</div>

I’m excited to join and understand the MFA things

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 31, 2025, 4:40am UTC](https://community.auth0.com/t/can-i-trigger-mfa-in-auth0-without-redirecting-to-auth0-s-mfa-page/190609/6 "2025-08-31T04:40:37Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
