> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Two-Factor Authentication

> Add an extra layer of security to your PlayFab Game Manager account by pairing an authenticator app on your device to enable two-factor sign-in verification.

Two-factor authentication allows you to reinforce security on your PlayFab Game Manager account by adding one more step to the authentication process.

It does so by adding a device-factor to the authentication process, which only allows you to authenticate, if you possess a certain device specifically registered for this purpose.

## Configuring two-factor authentication

Install a **Two-Factor Authentication** app to your device. You can search on your own application, or select your platform from the following list:

* [iPhone, iPad, and iPod Touch](https://itunes.apple.com/us/app/google-authenticator/id388497605?mt=8)
* [Android phone or tablet](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2)
* [Windows phone or tablet](https://www.windowsphone.com/store/app/authenticator/e7994dbc-2336-4950-91ba-ca22d653759b)

The steps are basically similar on all the platforms. This example shows an Android-based device, and a Google Authenticator application.

Once the application is downloaded;

* Open it and follow the instructions.
* Select the **Begin** button **(1)**.

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/google-2-step-verification-begin.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=a7c71f915f0f800a6bebd30167ee6df1" alt="Google - 2-Step Verification - Begin" width="540" height="960" data-path="images/playfab/identity/dev-identity/authentication/google-2-step-verification-begin.png" />

Follow through the tutorial for the app, if there is any **(1)**.

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/google-2-step-verification-info-screen.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=770edfba65b1b677acc7096643b722ee" alt="Google - 2-Step Verification - Info Screen" width="540" height="960" data-path="images/playfab/identity/dev-identity/authentication/google-2-step-verification-info-screen.png" />

* Then select one of two options to add your PlayFab account:

* Either scan a **bar code (1)**.

* Or type in the **key** manually **(2)**.

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/google-2-step-verification-add-account.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=2a697a05f0766ca2ab04229217d0d5b9" alt="Google - 2-Step Verification - Add account" width="540" height="960" data-path="images/playfab/identity/dev-identity/authentication/google-2-step-verification-add-account.png" />

Whichever option you choose, follow to the PlayFab website and navigate to **Game Manager**. On the **Dashboard** tab:

* Select the **Account** panel **(1)**.
* Then select **My Profile (2)**.

<img src="https://mintcdn.com/microsoft-4404708b/fZvLNnT4WAs1io9f/images/playfab/identity/dev-identity/authentication/game-manager-dashboard-open-my-profile.webp?fit=max&auto=format&n=fZvLNnT4WAs1io9f&q=85&s=5300ee6ce6ed9994ea5d8ff7e0b114f5" alt="Game Manager - Dashboard - Open My Profile" width="1008" height="720" data-path="images/playfab/identity/dev-identity/authentication/game-manager-dashboard-open-my-profile.webp" />

The **Account** settings will open.

* Verify that the **Enable two-factor authentication** checkbox is checked.
* Depending on which option you have chosen, use the **code (1)** or a **bar code (2)** to add a new account using the application on your device.

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/game-manager-my-profile-two-factor-authentication.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=75c008985bf14baea64efef07b145738" alt="Game Manager - My Profile - Two-Factor Authentication" width="1282" height="837" data-path="images/playfab/identity/dev-identity/authentication/game-manager-my-profile-two-factor-authentication.png" />

Once this is done, you will obtain a two-factor code.

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/google-authenticator-confirm-verification-code.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=096a8a7fa752d2a4d474d4f1b0d28c2a" alt="Google - Authenticator - Confirm verification code" width="540" height="960" data-path="images/playfab/identity/dev-identity/authentication/google-authenticator-confirm-verification-code.png" />

Head back to the **Profile** settings in the PlayFab **Game Manager**:

* Enter the **code** you received **(1)**.
* Select **Save Profile** button **(2)**.

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/game-manager-my-profile-enter-two-factor-code.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=118a842e37af1e72cfd88e83cabe754b" alt="Game Manager - My Profile - Enter Two-factor code" width="1282" height="837" data-path="images/playfab/identity/dev-identity/authentication/game-manager-my-profile-enter-two-factor-code.png" />

## Testing

Log out of your PlayFab account and try to log in again. The first step of the authentication process will look normal (see example provided below).

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/playfab-login-screen.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=752c44de2c42fa2812bf1a1c42804e84" alt="PlayFab - Login Screen" width="1144" height="699" data-path="images/playfab/identity/dev-identity/authentication/playfab-login-screen.png" />

The second step will require you to use your two-factor code. The code is available at any time, and you can access it using the application you installed on your device.

<img src="https://mintcdn.com/microsoft-4404708b/Oa_DP1q6U1lat7c2/images/playfab/identity/dev-identity/authentication/playfab-enter-two-factor-token.png?fit=max&auto=format&n=Oa_DP1q6U1lat7c2&q=85&s=501a24afaeb3d28dd70b94e661198a6d" alt="PlayFab - Enter Two-factor token" width="767" height="560" data-path="images/playfab/identity/dev-identity/authentication/playfab-enter-two-factor-token.png" />

Once the correct two-factor code has been entered, you should be logged in.

This concludes setting up two-factor authentication for PlayFab.


## Related topics

- [Certification PC BVT Guide](/publishing/game-publishing/concepts/certification/certification-pc-bvt-guide.md)
- [Game Manager reference](/services/playfab/live-service-management/gamemanager/reference.md)
- [XR-013 Linking Microsoft Accounts with Publisher Accounts](/publishing/certification/xr/xr-013.md)
- [XBOX Partner Onboarding for access and publishing](/home/onboarding.md)
- [XBOX Requirement test cases for PC and mobile games](/publishing/certification/pc-policy-tests.md)
