# Switching between MFA's

**URL:** <https://community.auth0.com/t/switching-between-mfas/85294>\
**Category:** Get Help\
**Tags:** adaptive-mfa, signup, mfa-sms, login, mfa\
**Created:** [June 17, 2022, 11:32am UTC](https://community.auth0.com/t/switching-between-mfas/85294 "2022-06-17T11:32:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sishwarya10](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sishwarya10/32/38101_2.png) [@sishwarya10](https://community.auth0.com/u/sishwarya10)\
**Post date:** [June 17, 2022, 11:32am UTC](https://community.auth0.com/t/switching-between-mfas/85294/1 "2022-06-17T11:32:13Z")

</div>

Hi Team,

Is there any way to allow the user to switch between MFA’s after completing signup with one of the MFA’s.

For example while signup let’s assume that the user enrolled in Google authenticator and after sometime they want to switch to some other MFA like SMS/Recovery code.

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [June 17, 2022, 4:52pm UTC](https://community.auth0.com/t/switching-between-mfas/85294/3 "2022-06-17T16:52:19Z")

</div>

Hi @sishwarya10 ,

Welcome to the Auth0 Community!

`Is there any way to allow the user to switch between MFA’s after completing signup with one of the MFA’s.`

Yes, after the users sign up , when they sign in, the default MFA is the Google authenticator. By clicking on the “`Try another method`” → “`SMS`” → entering the phone number, they can log in. And after that, the default MFA is set to SMS. They can click on “Try another method” if want to switch to a different MFA factor.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/b/9/b93f7afa2fc8b7209aca83c682882051c7a3123b.png)

 ![image](https://global.discourse-cdn.com/auth0/original/3X/f/4/f4e81641fe8e7d05905c5fdf1f756ae7e5319bab.jpeg)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![sishwarya10](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sishwarya10/32/38101_2.png) [@sishwarya10](https://community.auth0.com/u/sishwarya10)\
**Post date:** [June 22, 2022, 1:40pm UTC](https://community.auth0.com/t/switching-between-mfas/85294/4 "2022-06-22T13:40:52Z")

</div>

Thanks for the reply @lihua.zhang

But the thing is, will we be allowed to change between MFA’s while logging in?

For example, I have enabled SMS, Google Authendicator and another one MFA. At the time of sign up it allows me to switch between SMS and Google Authenticator using `try another method`. From here I tried two scenarios

1. Setting up SMS while signup
2. Setting up Google Authenticator while signup

In both scenarios, when I enter into login, I received only one MFA which I have selected during signup process.

Are there any possibility to register in both SMS and Google authenticator while signup?

[Note: When I have enabled Recovery code as one of the MFA I’m able to switch between MFA’s during signup and login as well. But it is not possible to switch between SMS and Google Authenticator]

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [June 30, 2022, 3:00pm UTC](https://community.auth0.com/t/switching-between-mfas/85294/6 "2022-06-30T15:00:12Z")

</div>

This topic was automatically closed after 12 days. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [June 30, 2022, 4:37pm UTC](https://community.auth0.com/t/switching-between-mfas/85294/7 "2022-06-30T16:37:08Z")

</div>



---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [June 30, 2022, 5:13pm UTC](https://community.auth0.com/t/switching-between-mfas/85294/8 "2022-06-30T17:13:47Z")

</div>

Hi @sishwarya10 ,

I Apologize for the delay.

I discussed this topic with my team internally. Actually we can use the MFA API to enroll the user in the 2nd factor. For example, if the user is already enrolled in Google Authenticator, to enroll SMS factor, here are the details.

1.Pass the access token to enroll the SMS authenticator.

```auto
curl --request POST \
  --url '{YOUR_DOMAIN}/mfa/associate' \
  --header 'authorization: Bearer {ACCESS_TOKEN}' \
  --header 'content-type: application/json' \
  --data '{ "authenticator_types": ["oob"], "oob_channels": ["sms"], "phone_number": "+15551234567" }'

```

This request will return the oob\_code like below:

{“authenticator\_type”:“oob”,“binding\_method”:“prompt”,“oob\_channel”:“sms”,“oob\_code”:“Fe26.2_82dcca_00….MoJZ1Q3k”}

And on the phone, receive the 6 digits binding\_code.

2.Confirm SMS enrollment with the access token and oob\_code and binding\_code.

```auto
curl --request POST \
  --url '{YOUR_DOMAIN}/oauth/token' \
  --header 'authorization: Bearer {ACCESS_TOKEN}' \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data 'grant_type=http://auth0.com/oauth/grant-type/mfa-oob' \
  --data 'mfa_token={ACCESS_TOKEN}'\
  --data 'client_id={YOUR_CLIENT_ID}' \
  --data ‘client_secret={YOUR_CLIENT_SECRET}’ \
  --data 'oob_code={OOB_CODE}' \
  --data 'binding_code={6_DIGIT_CODE}'

```

3.Verify on the user setting and login as the user, you will see both factors are added.

[This](https://auth0.com/docs/secure/multi-factor-authentication/authenticate-using-ropg-flow-with-mfa/enroll-challenge-sms-voice-authenticators#enroll-with-sms-or-voice) article explains the details. Please let me know how it goes. Thank you!

BTW, we created [this](https://community.auth0.com/t/how-to-enroll-a-user-in-both-google-authenticator-and-sms-with-mfa-api/86263) FAQ recently regarding how to enroll a user in multiple authentication factors using MFA API. It might be helpful to your use case.

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [July 11, 2022, 3:00pm UTC](https://community.auth0.com/t/switching-between-mfas/85294/9 "2022-07-11T15:00:14Z")

</div>

This topic was automatically closed after 10 days. New replies are no longer allowed.
