# Understanding Two-Factor Authentication

Two-factor authentication (2FA) protects your ID Everywhere account with something you have, in addition to your password. Even if someone learns your password, they can't sign in without your second factor.

## Your two methods

<table id="bkmrk-method-how-it-works-"><thead><tr><th>Method</th><th>How it works</th><th>Best for</th></tr></thead><tbody><tr><td>**Authenticator app** (recommended)</td><td>An app on your phone, such as Microsoft Authenticator, Google Authenticator, Authy or 1Password, shows a new 6-digit code every 30 seconds.</td><td>Faster and more secure. Works without email or signal.</td></tr><tr><td>**Email**</td><td>A 6-digit code is emailed to you each time. It's valid for 10 minutes.</td><td>Everyone has it by default, and it's a backup if you lose your phone.</td></tr></tbody></table>

If you set up an authenticator app, you also get 10 one-time **recovery codes** for emergencies. See [Using and Replacing Recovery Codes](https://help.ideverywhere.com/books/security-account-protection/page/using-and-replacing-recovery-codes).

## When you're asked for a code

- **Every portal sign-in**, after your password.
- **Before revealing secrets**, such as a BitLocker recovery key or the LDAP service account password, even if you're already signed in ("Verify it's you"). After verifying, you won't be asked again for 5 minutes.
- **When changing your password.**

<p class="callout info">Windows sign-in uses your ID Everywhere password on the PC itself. The portal's 2FA code isn't needed at the Windows sign-in screen.</p>

## Built-in protections

- After 5 wrong codes, verification pauses for 10 minutes.
- Each authenticator code works only once, so a code someone sees over your shoulder can't be reused.
- You get an email each time you sign in to the portal. See [Understanding Login Security Notifications](https://help.ideverywhere.com/books/security-account-protection/page/understanding-login-security-notifications).

## Get started

- [Setting Up an Authenticator App](https://help.ideverywhere.com/books/security-account-protection/page/setting-up-an-authenticator-app)
- [Managing Your Preferred 2FA Method](https://help.ideverywhere.com/books/security-account-protection/page/managing-your-preferred-2fa-method)
- [Troubleshooting Two-Factor Authentication](https://help.ideverywhere.com/books/troubleshooting/page/troubleshooting-two-factor-authentication)