# How to get MFA token without authorization and universal flow?

**URL:** <https://community.auth0.com/t/how-to-get-mfa-token-without-authorization-and-universal-flow/193578>\
**Category:** Get Help\
**Tags:** mfa-api, mfa\
**Created:** [October 24, 2025, 1:35pm UTC](https://community.auth0.com/t/how-to-get-mfa-token-without-authorization-and-universal-flow/193578 "2025-10-24T13:35:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![khushbu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/khushbu/32/76815_2.png) [@khushbu](https://community.auth0.com/u/khushbu)\
**Post date:** [October 24, 2025, 1:35pm UTC](https://community.auth0.com/t/how-to-get-mfa-token-without-authorization-and-universal-flow/193578/1 "2025-10-24T13:35:58Z")

</div>

We are creating custom flow for MFA in our application. We have doubts around how to get the mfa token generated?

We are already aware of methods listed below:

1. Making a request to `/oauth/token` with a username + password, it returns an error and a mfa token.
  1. Cant use because : It requires the username + password to be prompted, which we don’t want to do.

2. Making a request to `/authorize`, requesting the `/mfa/` audience with the `enroll` scope. `/authorize` endpoint, when providing `prompt=none`, should return a `mfa_token` when encountering the error “Multifactor authentication required”, but its does not.
  1. Cant use because : This adds a login / pop up screen, which is not suitable for our application.

The `/oauth/token` endpoint returns a `mfa_token` when using the ROPG flow, so I don’t see why the `/authorize` endpoint wouldn’t return a `mfa_token`?

We want to know what other ways are possible to generate MFA token from FE, without touching the login flow or any additional universal flow popups.

Note : We are successfully able to do enroll and challenge with if a mfa token is generated.

Thanks. 🙂

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [October 24, 2025, 4:46pm UTC](https://community.auth0.com/t/how-to-get-mfa-token-without-authorization-and-universal-flow/193578/3 "2025-10-24T16:46:57Z")

</div>

Hi @khushbu

The short answer is: an `mfa_token` can **only** be generated by Auth0 during a primary authentication transaction (such as the Universal Login flow or ROPG) when MFA is required to complete that _specific_ login, since MFA stands for Multi-Factor Authentication.

It is not possible to generate an `mfa_token` from the frontend on demand without initiating one of these login flows.

Since you cannot obtain an `mfa_token` without one of the login flows you’ve ruled out, the recommended approach for triggering MFA for an already authenticated user is **Step-Up Authentication**.

This pattern is used when a user, who is already logged in, tries to access a sensitive part of your application (e.g., admin settings, payment details).

1. Your application detects that the user is trying to access a protected resource.

2. Your application initiates a _new_ authentication request to the `/authorize` endpoint.

3. Crucially, you include the `amr_values=mfa` parameter in this request.

4. Auth0 receives this request. It checks if the user already has a valid session (so it doesn’t ask for a password), but it also recognizes the `amr_values=mfa` parameter, which forces it to challenge the user for a second factor.

5. Once the user completes the MFA challenge, Auth0 redirects back to your application with new tokens, which now include “mfa” in the `amr` (Authentication Methods Reference) claim, proving the step-up was successful.

While this _does_ use the Universal Login flow (a redirect), it achieves your goal of not prompting for a password and only triggering the MFA challenge.

If you have any further questions, please don’t hesitate to reach out.

Have a good one,  
Vlad

---

<div class="post-metadata">

**Author:** ![khushbu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/khushbu/32/76815_2.png) [@khushbu](https://community.auth0.com/u/khushbu)\
**Post date:** [October 27, 2025, 1:41pm UTC](https://community.auth0.com/t/how-to-get-mfa-token-without-authorization-and-universal-flow/193578/4 "2025-10-27T13:41:51Z")

</div>

> [@vlad.murarasu](#):
>
> 1. Once the user completes the MFA challenge, Auth0 redirects back to your application with new tokens, which now include “mfa” in the `amr` (Authentication Methods Reference) claim, proving the step-up was successful.

In this step, on redirection you are saying we will get the MFA token in api :

[https://auth.staging.highbeam.co/oauth/token](https://auth.staging.highbeam.co/oauth/token)

provided the audiance = [https://highbeam-staging.us.au](https://highbeam-staging.us.au)[​](https://auth.staging.highbeam.co/oauth/token "Open link in external tab")[th0.com/mfa/](http://th0.com/mfa/) ?

---

<div class="post-metadata">

**Author:** ![adam.laycock1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adam.laycock1/32/77205_2.png) [@adam.laycock1](https://community.auth0.com/u/adam.laycock1)\
**Post date:** [October 27, 2025, 2:38pm UTC](https://community.auth0.com/t/how-to-get-mfa-token-without-authorization-and-universal-flow/193578/5 "2025-10-27T14:38:05Z")

</div>

Hi @vlad.murarasu,

Our intention is to implement our own step-up authentication flow, outside of the universal flow. The universal flow does achieve our goal, but is not the experience we want to provide our users.

I understand this isn’t possible today, but I agree with Khushbu here. It seems to me that the `/authorize` returning the “Multifactor authentication required” error could also provide a `mfa_token` that can be used for the MFA challenge endpoint, similar to how the the `/oauth/token` endpoint does during the ROPG flow.

Is this something that is being considered, or is there maybe an a beta program we could participate in, to achieve our goal here?
