# Enrol user through MFA after signup

**URL:** <https://community.auth0.com/t/enrol-user-through-mfa-after-signup/73587>\
**Category:** Get Help\
**Tags:** react\
**Created:** [November 22, 2021, 9:13pm UTC](https://community.auth0.com/t/enrol-user-through-mfa-after-signup/73587 "2021-11-22T21:13:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![felix.hubert](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/felix.hubert/32/33173_2.png) [@felix.hubert](https://community.auth0.com/u/felix.hubert)\
**Post date:** [November 22, 2021, 9:13pm UTC](https://community.auth0.com/t/enrol-user-through-mfa-after-signup/73587/1 "2021-11-22T21:13:01Z")

</div>

My app is using Universal Login, and I’m trying to create a scenario where a user logs in the app, then goes to its profile page, and then “toggles on” the MFA by SMS.  
Can the enrolment of MFA be handled by Universal Login? So I don’t have to manage the integration in my app; when the user clicks on the “Turn on MFA”, the user is redirected to the Auth0 UI for MFA.

I found this: [Manage Authenticator Factors with Auth0 MFA API](https://auth0.com/docs/login/mfa/ropg-mfa/manage-authenticator-factors-mfa-api#universal-login)  
And so I tried using `auth0.loginWithRedirect({ audience: 'mfa' })` without success

- **Which SDK this is regarding:** e.g. auth0-react
- **SDK Version:** e.g.1.8.0
- **Platform Version:** e.g. Node 12.18.0

Thank you

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [November 22, 2021, 11:00pm UTC](https://community.auth0.com/t/enrol-user-through-mfa-after-signup/73587/2 "2021-11-22T23:00:24Z")

</div>

Hi Felix,

Welcome to the Auth0 Community!

Our current recommendation is to use the MFA API and build your own UI, to get the MFA API token you need to add the audience/scope in the /authorize request. For the MFA API, the audience is **https://YOUR\_DOMAIN/mfa/** (a url format and not just ‘mfa’) and the available scopes are “enroll”, “read:authenticators” and “remove:authenticators”: [https://auth0.com/docs/mfa/authenticate-with-ropg-and-mfa/manage-authenticator-factors-mfa-api#universal-login](https://auth0.com/docs/mfa/authenticate-with-ropg-and-mfa/manage-authenticator-factors-mfa-api#universal-login)

The scopes will also need adding to your loginWithRedirect() please see the option here: [https://auth0.github.io/auth0-react/interfaces/auth0\_context.redirectloginoptions.html#scope](https://auth0.github.io/auth0-react/interfaces/auth0_context.redirectloginoptions.html#scope)

Then you can use the various MFA API endpoints to list, enroll and remove authenticators within your own UI. [https://auth0.com/docs/login/mfa/ropg-mfa/manage-authenticator-factors-mfa-api#list-authenticators](https://auth0.com/docs/login/mfa/ropg-mfa/manage-authenticator-factors-mfa-api#list-authenticators)

I hope this helps you get started.

---

<div class="post-metadata">

**Author:** ![felix.hubert](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/felix.hubert/32/33173_2.png) [@felix.hubert](https://community.auth0.com/u/felix.hubert)\
**Post date:** [November 23, 2021, 2:00pm UTC](https://community.auth0.com/t/enrol-user-through-mfa-after-signup/73587/3 "2021-11-23T14:00:38Z")

</div>

Hi Saqib,

Thank you for your answer and the references.  
Just to make sure I understand:  
When a user that is already enrolled through MFA would log in through Universal Login, the Auth0 UI would be responsible of handling the MFA challenge? But when a user wants to enroll, we have to make our own UI for the initial challenge?

Thanks again, if I go with making my own UI for the enrolment, those links will be handy.

Felix

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [November 23, 2021, 11:54pm UTC](https://community.auth0.com/t/enrol-user-through-mfa-after-signup/73587/4 "2021-11-23T23:54:15Z")

</div>

Hey Felix,

That is correct, there currently isn’t a way to provide self enrolment for MFA with Universal Login out of the box so custom UI is the way to go right now. I would encourage you to complete product feedback for this feature here [https://auth0.com/feedback](https://auth0.com/feedback) the more demand we get for features the more likely it is to hit the top of the road map 🙂

All the best.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 7, 2021, 2:31pm UTC](https://community.auth0.com/t/enrol-user-through-mfa-after-signup/73587/5 "2021-12-07T14:31:49Z")

</div>


