> For the complete documentation index, see [llms.txt](https://docs.guestway.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guestway.io/account-and-administration/your-profile/how-to-turn-on-two-factor-authentication.md).

# How to turn on two-factor authentication

This guide shows you how to protect your login with a code from an authenticator app, so a password alone is not enough to get in.

{% hint style="info" %}
**Before you start**

* An authenticator app on your phone, for example Google Authenticator, Authy or Microsoft Authenticator.
  {% endhint %}

## Start the setup

{% stepper %}
{% step %}

### Open your profile

Go to **Settings** → **Profile** → **General**.

{% hint style="success" %}
Turn on two-factor authentication before you invite your team. It sets the example for everyone in your organization.
{% endhint %}
{% endstep %}

{% step %}

### Open the setup

Next to **Two-Factor Authentication**, click **Set up two-factor authentication**. On **Secure Your Account**, click **Set Up 2FA**.

If you see *You must be logged in recently to enable 2FA*, log in again and start over.
{% endstep %}
{% endstepper %}

## Connect your authenticator app

{% stepper %}
{% step %}

### Scan the QR code

In your authenticator app, add an account and scan the QR code. The account shows in the app as **Guestway**.

If you cannot scan the code, click **Can't scan? Enter key manually** and type the **Secret Key** in the app.

Click **Next**.
{% endstep %}

{% step %}

### Confirm with a code

Type the 6-digit code that the app shows. If the setup does not continue by itself, click **Enable 2FA**.

You see *Two-factor authentication enabled*.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
You cannot turn two-factor authentication off yourself, and Guestway has no recovery codes. Keep the authenticator app on a phone you keep with you.
{% endhint %}

## Log in with the code

{% stepper %}
{% step %}

### Enter the code

After your password, Guestway asks for the 6-digit code from your authenticator app. Type it and click **Verify Code**.
{% endstep %}
{% endstepper %}

## Troubleshooting

<details>

<summary>What do I do when I lose my phone?</summary>

Ask a holding owner to reset your two-factor authentication. The owner goes to **Settings** → **Holding** → **All users**, opens your user and clicks **Reset 2FA**. At your next login, you set up two-factor authentication again. See [How to reset two-factor authentication for a user](https://docs.guestway.io/account-and-administration/holding-settings/how-to-reset-two-factor-authentication-for-a-user.md).

</details>

<details>

<summary>Why is the code not accepted?</summary>

If you see *Invalid verification code* or *The verification code has expired*, wait for the next code in the app and type it again. If you see *Too many attempts*, wait a while before you try again.

</details>

<details>

<summary>Why does Guestway ask me to set up two-factor authentication when I log in?</summary>

Your holding requires two-factor authentication for your role. Complete the setup to continue. See [How to require two-factor authentication](https://docs.guestway.io/account-and-administration/holding-settings/how-to-require-two-factor-authentication.md).

</details>

## Related

* [Your profile](https://docs.guestway.io/account-and-administration/your-profile.md)
* [How to require two-factor authentication](https://docs.guestway.io/account-and-administration/holding-settings/how-to-require-two-factor-authentication.md)
* [How to reset two-factor authentication for a user](https://docs.guestway.io/account-and-administration/holding-settings/how-to-reset-two-factor-authentication-for-a-user.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.guestway.io/account-and-administration/your-profile/how-to-turn-on-two-factor-authentication.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
