# How can user change phone number used for MFA

**URL:** <https://community.auth0.com/t/how-can-user-change-phone-number-used-for-mfa/98906>\
**Category:** Get Help\
**Tags:** mfa-prompt-classic-experience, mfa\
**Created:** [January 25, 2023, 11:28am UTC](https://community.auth0.com/t/how-can-user-change-phone-number-used-for-mfa/98906 "2023-01-25T11:28:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssp6](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ssp6/32/43948_2.png) [@ssp6](https://community.auth0.com/u/ssp6)\
**Post date:** [January 25, 2023, 11:28am UTC](https://community.auth0.com/t/how-can-user-change-phone-number-used-for-mfa/98906/1 "2023-01-25T11:28:33Z")

</div>

Is there a recommended flow for how a user of our application can change their phone number being used for MFA?

We have an SPA using React and the Class Flow for login plus an API that is authenticated using the access\_token returned from Auth0.

I currently see 2 options:

1. On the frontend, list and remove the MFA then force the user to sign in again, this will force them to enter a new phone number for MFA
2. Create our own API’s that will add a new MFA authenticator, remove the old one then return the MFA token for the user to use to type in the code sent to them

Changing MFA seems like something most people that use MFA must implement so just wondering what the most common/secure flow is?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [January 25, 2023, 10:35pm UTC](https://community.auth0.com/t/how-can-user-change-phone-number-used-for-mfa/98906/3 "2023-01-25T22:35:45Z")

</div>

Hey there @ssp6 welcome to the community!

> [@ssp6](#):
>
> Create our own API’s that will add a new MFA authenticator, remove the old one then return the MFA token for the user to use to type in the code sent to them

I think you’re on the right track with this - You want to make sure there is no gap between old and new factor so adding the new one and then deleting the old one in that order is important.

General Idea:

> 1. The user accesses the “profile” page and chooses “Change phone number”.
> 2. The page checks redirects the user to Auth0 to authenticate and use MFA API as audience. Make sure MFA is enforced to prevent account takeover.
> 3. Once the re-auth is completed - Use the MFA token to register the new phone number as a factor and delete the old one (in this order - so that the account doesn’t stay without MFA at all even for a short time).

[https://auth0.com/docs/secure/multi-factor-authentication/authenticate-using-ropg-flow-with-mfa/manage-authenticator-factors-mfa-api](https://auth0.com/docs/secure/multi-factor-authentication/authenticate-using-ropg-flow-with-mfa/manage-authenticator-factors-mfa-api)

Hope this helps!

---

<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:** [February 8, 2023, 10:36pm UTC](https://community.auth0.com/t/how-can-user-change-phone-number-used-for-mfa/98906/4 "2023-02-08T22:36:41Z")

</div>

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