Add Phone as a Second Factor
On this page
This feature requires at least a Starter plan.
1.26.0
With the phone method, FusionAuth sends a one-time code to the user's phone at login. FusionAuth sends the code by SMS, or by a voice call in 1.65.0 and later.
Enable the Phone Method on the Tenant#
FusionAuth doesn't enable the phone method by default. The phone method needs a messenger. For more information, see Messengers.
To enable the phone method:
-
Navigate to Tenants -> Edit Tenant -> Multi-Factor .
-
Turn on Enable SMS MFA, Enable voice MFA, or both.
-
For each enabled message type, select a messenger and a template. FusionAuth ships with default templates that you can customize. An Application can override the templates on its Multi-Factor tab.

Add a Phone on the Account Pages#
-
On the account page, click Manage two-factor .

-
Click Add two-factor .

-
Select
Phone.
-
Enter a phone number.
-
When the tenant enables both SMS and voice, select the message type.
-
Click Send a one-time code .
-
Optionally, enter a name for the method, such as
Work phone. -
Enter the code from the message.
-
Click Enable .
Recovery Codes#
When the method is the user's first MFA method, FusionAuth shows recovery codesA code used to regain access to an account when the user loses their multi-factor authentication factors.. Save the recovery codes in a safe place.

Log In with a Phone#
After the user enters a password at the next login, FusionAuth sends a code to the phone and asks for the code. When the tenant enables both SMS and voice, the user chooses the message type first.

Related
API documentation for the FusionAuth Disable Multi-Factor API.
API documentation for the FusionAuth Enable Multi-Factor API.
API documentation for the FusionAuth Generate a Secret API.
API documentation for the FusionAuth Generate Recovery Codes API.