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

# Set up two-factor authentication

> Protect your TypingMind workspace account with a second step at login: a code from an authenticator app, or a passkey.

Two-factor authentication (2FA) adds a second step when you log in to your workspace. After your email code (or, for admins, after signing in with Google), TypingMind asks for a code from an authenticator app on your phone, or for a passkey. Someone who gets into your email can't get into your account without it.

This guide is for workspace members. If you're an admin and want to require 2FA for your team, see [Require two-factor authentication](https://docs.typingmind.com/typingmind-team/user-management/require-two-factor-authentication.md).

> [!NOTE]
>
> 2FA applies when you log in with an email code, or, as an admin, with Google. If you log in through your company's single sign-on (SSO) or another identity provider, that provider handles the second step, and TypingMind doesn't ask for one.

## Open your security settings

1. In your workspace, open your account menu: click your avatar at the bottom left (on a phone, at the bottom right of the bottom bar).
2. Click **Account**.
3. Scroll to **Security**.

You can also open it from **Settings** → **Account**. If your workspace hides the account menu, click **Security** at the bottom of the sidebar.

![The account menu in a TypingMind workspace, with the Account item](https://mintcdn.com/typingmind/-HYdhxSv-v_eTW3W/images/workspace-2fa-account-menu.webp?fit=max\&auto=format\&n=-HYdhxSv-v_eTW3W\&q=85\&s=ecda29422461f97e65d93ba2bfafc464)

![The Account dialog: the Profile section, then the Security section with two-factor authentication Off and a Set up 2FA button](https://mintcdn.com/typingmind/-HYdhxSv-v_eTW3W/images/workspace-2fa-account-security-off.webp?fit=max\&auto=format\&n=-HYdhxSv-v_eTW3W\&q=85\&s=59442fcf6aeee3bd1e07ab794b46029c)

## Set up the authenticator app

You need an authenticator app on your phone, such as Google Authenticator, Microsoft Authenticator or 1Password. It takes about 2 minutes.

1. Under **Security**, click **Set up 2FA**.
2. Scan the QR code with your authenticator app. If you can't scan it, enter the **Setup key** in the app instead (click the copy button next to it).
3. The app adds an entry named **TypingMind (*your workspace name*)**. Type the 6-digit code it shows into **Code from your authenticator app**.
4. Click **Turn on 2FA**.

![Set up two-factor authentication: a QR code, the setup key with a copy button, and the field for the code from the authenticator app](https://mintcdn.com/typingmind/-HYdhxSv-v_eTW3W/images/workspace-2fa-setup-qr-code.webp?fit=max\&auto=format\&n=-HYdhxSv-v_eTW3W\&q=85\&s=ab4ed0e97bd672f6975ec3d93f5365b2)

Turning on 2FA logs you out of your other devices. Log in again there, with your new second step. If you don't finish within 10 minutes, the QR code expires: click **Start over**.

TypingMind emails you when 2FA is turned on or off, when a passkey is added or removed, and whenever a recovery code is used.

## Save your recovery codes

Right after setup, TypingMind shows 10 recovery codes. Each code lets you log in once if you lose your phone.

1. Click **Download** or **Copy**, and keep the codes somewhere safe, such as a password manager.
2. Click **I saved them**.

> [!WARNING]
>
> You won't see these codes again. Without your phone and without your recovery codes, only an admin of your workspace can let you back in.

![Save your recovery codes: 10 codes with Download, Copy and I saved them buttons](https://mintcdn.com/typingmind/-HYdhxSv-v_eTW3W/images/workspace-2fa-recovery-codes.webp?fit=max\&auto=format\&n=-HYdhxSv-v_eTW3W\&q=85\&s=641512258c92695cb5dd6d9f03080cd6)

Once 2FA is on, **Security** shows your authenticator app, your passkeys, and how many recovery codes you have left.

![Security with two-factor authentication On: the authenticator app, a passkey with Rename and Remove, recovery codes 10 of 10 left, and Turn off 2FA](https://mintcdn.com/typingmind/-HYdhxSv-v_eTW3W/images/workspace-2fa-security-on.webp?fit=max\&auto=format\&n=-HYdhxSv-v_eTW3W\&q=85\&s=b3966cc37704d28e26a0d74073cfd927)

## Add a passkey

A passkey lets you confirm your login with your fingerprint, your face, your device's screen lock or a security key, instead of typing a code. You can add passkeys once the authenticator app is set up, up to 10.

1. Under **Passkeys**, click **Add a passkey**.
2. If TypingMind asks for a code (it does when you logged in more than 10 minutes ago), enter one from your authenticator app or a recovery code, then click **Continue**.
3. Your browser asks for your fingerprint, face, screen lock or security key. Confirm.
4. Give the passkey a name, such as the device it's on, and click **Save passkey**.

![Name your passkey: a Name field with MacBook Touch ID, and Save passkey](https://mintcdn.com/typingmind/-HYdhxSv-v_eTW3W/images/workspace-2fa-passkey-name.webp?fit=max\&auto=format\&n=-HYdhxSv-v_eTW3W\&q=85\&s=e160b8e31d8ff050e70c146d11b03ec8)

You can **Rename** or **Remove** a passkey later. Removing one may ask for a code the same way, and doesn't affect your authenticator app or your other passkeys.

A few things to know:

* Passkeys can't be added in the desktop app or when the workspace is embedded in another page. Open your workspace in Chrome, Safari, Edge or Firefox to add one.
* A passkey works only at the web address where you added it. If your workspace has a custom domain, add your passkey there. A passkey that works only at one address says so, for example **Works only at chat.example.com**.

## Log in with 2FA

After your email code (or, for admins, after signing in with Google), TypingMind shows a **Two-factor authentication** step.

* Enter the 6-digit code from your authenticator app, then click **Log in**.
* Or click **Use a passkey instead** (shown when you have a passkey that works at this address), and confirm with your fingerprint, face, screen lock or security key.
* Or click **Use a recovery code instead**, and enter one of your recovery codes.

![The Two-factor authentication step of the login: the code from your authenticator app, Use a passkey instead, Use a recovery code instead, Log in](https://mintcdn.com/typingmind/-HYdhxSv-v_eTW3W/images/workspace-2fa-login-step.webp?fit=max\&auto=format\&n=-HYdhxSv-v_eTW3W\&q=85\&s=bca2fbf9fb1140414b33af5e06d0784f)

TypingMind asks for the second step once per login, not every time you open the app. If you wait more than 10 minutes at this step, start over with a new email code.

### Sign in directly with a passkey

If your workspace lets you log in with an email code, you can skip both the email and the code: on the login screen, click **Sign in with a passkey** and confirm with your fingerprint, face, screen lock or security key. Your browser may also offer your passkey when you click the email field.

![The workspace login with Login with email and Sign in with a passkey](https://mintcdn.com/typingmind/-HYdhxSv-v_eTW3W/images/workspace-2fa-login-passkey-button.webp?fit=max\&auto=format\&n=-HYdhxSv-v_eTW3W\&q=85\&s=0f48de6b0e79178940a2e03963049c3e)

A passkey you added before this option existed may only work as a second step. Its entry under **Passkeys** then says so: remove it and add it again to sign in with it directly.

### Use a recovery code

1. At the **Two-factor authentication** step, click **Use a recovery code instead**.
2. Enter one of your recovery codes and click **Log in**.

Each code works once. TypingMind emails you every time a recovery code is used. If you have 2 or fewer codes left, TypingMind suggests getting new ones right away: click **Get new codes**, or **Not now**.

![After logging in with a recovery code: You have 2 recovery codes left, with Get new codes and Not now](https://mintcdn.com/typingmind/-HYdhxSv-v_eTW3W/images/workspace-2fa-login-low-codes.webp?fit=max\&auto=format\&n=-HYdhxSv-v_eTW3W\&q=85\&s=e1ee4714688f888efbceca72ba00bbd1)

## Get new recovery codes

1. Open **Account** → **Security**.
2. Next to **Recovery codes**, click **Get new codes**, then confirm.
3. If TypingMind asks for a code (it does when you logged in more than 10 minutes ago), enter one from your authenticator app or a recovery code.
4. Save the new codes, then click **I saved them**.

Your old recovery codes stop working as soon as you get new ones.

## Turn off 2FA

1. Open **Account** → **Security** and click **Turn off 2FA**.
2. Enter a code from your authenticator app (a recovery code isn't accepted here), then click **Turn off 2FA**.

![Turn off two-factor authentication? with the field for the code from your authenticator app, Cancel and Turn off 2FA](https://mintcdn.com/typingmind/-HYdhxSv-v_eTW3W/images/workspace-2fa-turn-off.webp?fit=max\&auto=format\&n=-HYdhxSv-v_eTW3W\&q=85\&s=bbf7bc679a79a1a5cd843e0f3c11443a)

TypingMind stops asking for a second step, your recovery codes stop working, and all your passkeys for this workspace are removed. You're logged out of your other devices.

Once your workspace requires 2FA for you, **Security** says **Your workspace requires 2FA, so it can't be turned off.**

![Security on a phone: two-factor authentication On, with the note Your workspace requires 2FA, so it can't be turned off](https://mintcdn.com/typingmind/-HYdhxSv-v_eTW3W/images/workspace-2fa-phone-account-security.webp?fit=max\&auto=format\&n=-HYdhxSv-v_eTW3W\&q=85\&s=527377e3b3c674b7d6524b855e4b586d)

## If you lose your phone

* **You still have a recovery code or a passkey:** log in with it. Then, within 10 minutes, open **Account** → **Security** to get new recovery codes or add a passkey on your new device without being asked for a code. To move the authenticator app itself to a new phone, ask an admin of your workspace to reset your 2FA, then set it up again: turning 2FA off needs a code from the old app.
* **You have neither:** ask an admin of your workspace to reset your 2FA. The login step shows who to contact. After the reset, you log in with your email code and set up 2FA again.
* **You're the workspace owner and have neither:** contact TypingMind support. See [Two-factor authentication FAQ](https://docs.typingmind.com/typingmind-team/user-management/two-factor-authentication-faq.md#the-owner-lost-their-phone-and-recovery-codes).

Your chats and data stay when your 2FA is reset.

## Related

* [Require two-factor authentication](https://docs.typingmind.com/typingmind-team/user-management/require-two-factor-authentication.md), for admins
* [Two-factor authentication FAQ](https://docs.typingmind.com/typingmind-team/user-management/two-factor-authentication-faq.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.