Allowing end user to update 2FA Phone number

I want to let users update their phone numbers directly from the client for 2-factor authentication
(using react)