# How to implement MFA in a SPA with custom login UI (not Universal Login)?

**URL:** <https://community.auth0.com/t/how-to-implement-mfa-in-a-spa-with-custom-login-ui-not-universal-login/190078>\
**Category:** Get Help\
**Tags:** mfa-api, mfa\
**Created:** [August 3, 2025, 7:45am UTC](https://community.auth0.com/t/how-to-implement-mfa-in-a-spa-with-custom-login-ui-not-universal-login/190078 "2025-08-03T07:45:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankititsignups](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ankititsignups/32/72177_2.png) [@ankititsignups](https://community.auth0.com/u/ankititsignups)\
**Post date:** [August 3, 2025, 7:45am UTC](https://community.auth0.com/t/how-to-implement-mfa-in-a-spa-with-custom-login-ui-not-universal-login/190078/1 "2025-08-03T07:45:41Z")

</div>

I’m building a Single Page Application (SPA) with a **custom login form** (not using Universal Login). I want to enforce **MFA** (e.g., TOTP or SMS-based) after users log in.

Based on the documentation, MFA support seems tied to **Universal Login**. I want to know:

1. Is MFA **not supported** at all in embedded/custom login (via `/oauth/token` with ROPG)?
2. If not, what’s the correct way to enable MFA **in a SPA with custom UI**?
3. Can we implement a hybrid flow: show our custom login UI, then redirect to `/authorize` to trigger MFA?

I want to provide a secure MFA experience without fully switching to Universal Login. Please suggest the best practice or any workarounds.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [November 30, 2025, 8:12pm UTC](https://community.auth0.com/t/how-to-implement-mfa-in-a-spa-with-custom-login-ui-not-universal-login/190078/5 "2025-11-30T20:12:51Z")

</div>

Hi @ankititsignups

Welcome back to the Auth0 Community!

Thank you for posting your question. It’s possible to support MFA via /oauth/token with ROPG, but you will need to use the MFA API to achieve this. Here’s a link to our documentation that describes this flow → [Authenticate Using the Resource Owner Password Flow with MFA](https://auth0.com/docs/secure/multi-factor-authentication/authenticate-using-ropg-flow-with-mfa)

Alternatively, have you considered using the ACUL ([Advanced Customizations for Universal Login](https://auth0.com/docs/customize/login-pages/advanced-customizations))? It will still use the Universal Login under the hood, but allows for far greater customization.

Thanks!  
Dawid

---

<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:** [December 14, 2025, 8:13pm UTC](https://community.auth0.com/t/how-to-implement-mfa-in-a-spa-with-custom-login-ui-not-universal-login/190078/6 "2025-12-14T20:13:42Z")

</div>

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