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

# Two-factor authentication

Two-factor authentication (2FA) adds a second layer of security to your account, on top of your password. It's available on every FoodCore plan, from your account page.

## Setting up 2FA

**1. Go to your account page**

Open **Settings → Account** (or click your name/avatar in the top corner and choose **Account**).

**2. Find the Two-Factor Authentication section**

Click **Enable two-factor authentication**.

**3. Scan the QR code**

Use an authenticator app (such as Google Authenticator, Authy, or 1Password) to scan the QR code shown on screen. The app will start generating a new 6-digit code every 30 seconds.

**4. Enter a code to confirm**

Type the current code from your authenticator app into the confirmation field and submit. This proves the app is set up correctly before 2FA is switched on for your account.

**5. Save your recovery code**

Once confirmed, FoodCore shows you a **recovery code**. Save it somewhere safe — a password manager, or printed and stored securely. This code is your only way back into your account if you lose access to your authenticator app (a new phone, a factory reset, an uninstalled app). FoodCore support cannot recover 2FA access on your behalf without it.

## Logging in with 2FA

Once enabled, logging in is a two-step process: enter your email and password as normal, then enter the current 6-digit code from your authenticator app when prompted.

## If you're locked out

If you can't get a valid code from your authenticator app — lost phone, deleted app, or anything else — **use your recovery code**, not repeated login attempts. Enter it on the 2FA prompt in place of a 6-digit code to get back in, then set up 2FA again with a new authenticator app if needed.

{% hint style="info" %}
Repeated failed login attempts lock the account for **15 minutes** by design, as an anti-abuse measure. If you're locked out, the recovery code gets you back in immediately — retrying incorrect codes only extends the lockout.
{% endhint %}

If you've also lost your recovery code, email **<info@foodcore.io>** from the address on your account so we can verify your identity and help you regain access.

## Turning off 2FA

Go to **Settings → Account → Two-Factor Authentication** and click **Disable**. You'll be asked to confirm with a current code or your recovery code first.

## What's next

* [Creating your account](https://docs.foodcore.io/getting-started/creating-your-account.md)
* [Change your plan](https://docs.foodcore.io/account-and-billing/change-plan.md)
* [Get help from FoodCore](https://docs.foodcore.io/contact-and-support/support.md)
