If you’re like most people, you use your smartphone to do everything from checking email to browsing the web. But what if someone wanted to access your device without your permission? That’s where two-factor authentication comes in. Two-factor authentication is a security feature that requires you to enter not only your password, but also a second piece of information, like a code sent to your phone via text or an app. This way, even if someone knows your password, they won’t be able to access your device unless they also have the second factor. To set up two-factor authentication on your iPhone or iPad:

  1. Open the Settings app on your device.
  2. Tap on “Security & Privacy”.
  3. Under “Two-Factor Authentication”, tap on the toggle switch next to “Enable Two-Factor Authentication”.
  4. Enter your Apple ID password and tap on “Sign In”. If you don’t have an Apple ID, you can create one now by clicking on the link in the email that was sent to you when two-factor authentication was enabled for your account. Once you sign in, you will be taken to a screen where you can enter the code that was sent to your phone via text or an app. If you don’t have either of those options available to you, then two-factor authentication won’t be available for use on this device and it will need to be updated by Apple before it can be used again. ..

Thanks to the iCloud Keychain, you can view all saved accounts and passwords in the “Passwords” (previously, Passwords & Accounts) section of the “Settings” app. As of iOS 15 and iPadOS 15, you also have a built-in two-factor authentication feature in the Passwords section to generate verification codes. The codes will also autofill, just like the saved passwords, when you sign in to your accounts.

Keep in mind that using this feature involves a bit of tedious work on the front-end, as you’ll need to set it up for the login of every website and app you wish to secure with two-factor authentication. Of course, it will work only if the respective sites and apps support two-factor authentication for logins.

Here’s how to use the built-in authenticator on your iPhone or iPad.

RELATED: What Is Two-Factor Authentication, and Why Do I Need It?

How to Set Up the Two-Factor Authentication Feature

You can use the built-in two-factor authenticator with every site and app that supports two-factor authentication for a secure sign-in. While setting it up, you’ll need to add a setup key or QR code in the built-in two-factor authenticator on your iPhone and iPad.

To get started, open the “Settings” app and select “Passwords” on your iPhone or iPad.

You’ll need to use Face ID or Touch ID (or Passcode) to access the Passwords.

The next window shows the list of all passwords stored in the iCloud Keychain. You can tap on an existing entry. Alternatively, select the “+” (plus sign) in the top-right corner of the screen to add a new one.

Type the website address, user name, and the existing password. You’ll also find a stronger password suggested on top of the keyboard if you want to update the login with a stronger password. Finally, tap “Done” to proceed.

From the “Account Options” section, select the “Set Up Verification Code” option.

In the menu that pops up, select “Enter Setup Key” or “Scan QR Code” to add the verification code for your login. You’ll get the key or code from the website, as we’ll explain below.

The two-factor authenticator works only with the sites and apps that support setting up the two-factor authentication code using a QR code or security key. So you can use it with services like Github, Gmail, Outlook, and even social media apps like Facebook, Instagram, and Twitter.

RELATED: How Secure Are Face ID and Touch ID?

How to Set Up an Account for Two-Factor Authentication

Let’s say you want to secure your Twitter account. For that, you can use the authenticator after setting it up on your iPhone or iPad using Twitter’s QR code.

To access that, first open the Twitter website in a browser on your computer and tap on the “More” button on the left-hand side.

From the menu that pops up, select “Settings and Privacy.”

In the Settings, click “Security and Account Access,” then click “Security.”

Under the “Security” section, click “Two-Factor Authentication.”

In the “Two-Factor Authentication” section, check the box for “Authentication App.” Then, enter the Twitter account password to verify the changes you are about to make.

A pop-up for the Authentication app shows up and click the “Start” button on it.

The next screen will show you a QR code. Use your iPhone’s camera app to scan that QR code from the Twitter site. Next, tap the “Add Verification Code in Passwords” notification that shows up at the top of the screen.

Verify your identity with Face ID or Touch ID and select the account to add the verification code. Once you add that for the Twitter site in “Passwords,” you’ll see the “Verification Code” section that provides a six-digit code that changes every 30 seconds.

How to Enable Autofill for Passwords and Verification Codes

If you’ve been using a third-party password manager, you’ll need to enable Autofill after setting up the built-in two-factor authentication. Apart from prompts to autofill passwords, you’ll also get similar prompts for verifications codes so you won’t have to switch apps.

Open the “Settings” app, and tap on “Passwords” on your iPhone or iPad and use Face ID or Touch ID to access the “Passwords” section. Next, tap on “AutoFill Passwords.”

Under the “Allow Filling From” section, tap the “iCloud Keychain” option to select it.

Close the “Settings” app.

That’s it! After setting this up, you can log in to your favorite apps and sites more securely on your iPhone and iPad.

RELATED: How to Look up Your Accounts and Passwords on an iPhone or iPad