One of the handy, under-the-radar features with iOS 15 is an integrated 2FA code generator that makes it more seamless to log in to your accounts with enhanced security. Let’s look at how to use the native iOS 15 2FA code generator that comes with autofill on iPhone and iPad.

You’re probably used to using a third-party app to generate 2FA codes like 1Password, Authy, Google Authenticator, etc. (or using the less-secure SMS 2FA option). But in iOS 15, there’s native integration to generate 2FA codes as well as autofill them when logging into accounts.

Whether you want to simplify your setup by eliminating a third-party 2FA app or just want to give the iOS 15 native 2FA experience a try, we’ll cover how to set it up and use it with iPhone and iPad.

The feature is also available with macOS Monterey.

How to use the iOS 15 2FA code generator + autofill

Quick option

  • When viewing a website/service’s QR code for 2FA setup, long-press on it in iOS 15 and pick Set Up Verification Code
  • In our testing, we didn’t always see this option available, so follow the manual steps below for a guaranteed way to set up iOS 15 2FA codes and autofill

Manual option

  • Running iOS 15 on iPhone or iPad, open the Settings app
  • Swipe down and tap Passwords
  • Create a new login/password or choose an existing one
  • At the bottom, tap Set Up Verification Code
  • Choose to Enter a Setup Key or Scan QR Code to complete the setup
    • To find the QR code to setup 2FA for any given account, look in the settings for that service/website (e.g. Twitter’s settings > security > 2FA)
  • Now you’ll see the 30-second regenerating 2FA codes appear for each login item in iOS Settings > Passwords but they’ll be autofilled anytime you need to use them going forward.

Pro tip: For any accounts you already have 2FA set up, you’ll likely need to turn it off, then turn it back on to set it up with iOS 15’s native 2FA and autofill integration.

Here’s how the setup process looks:

How to set up iOS 15 2FA code generator and autofill - iOS Settings app > Passwords > Create new or select existing login
How to set up iOS 15 2FA code generator and autofill - iOS Settings app > Passwords > Create new or select existing login > Set Up Verification Code > Enter Setup Key or Scan QR code

When you’re all set up with 2FA through a website/service in iOS 15, you can view the constantly regenerating 6-digit codes in the Settings app > Passwords > choose a login.

But the best part is the next time you need to login and enter your 2FA code, iOS 15 will autofill it for you 😎.

Read more 9to5Mac tutorials:

FTC: We use income earning auto affiliate links. More.

Check out 9to5Mac on YouTube for more Apple news:

You’re reading 9to5Mac — experts who break news about Apple and its surrounding ecosystem, day after day. Be sure to check out our homepage for all the latest news, and follow 9to5Mac on Twitter, Facebook, and LinkedIn to stay in the loop. Don’t know where to start? Check out our exclusive stories, reviews, how-tos, and subscribe to our YouTube channel

About the Author

Michael Potuck

Michael is an editor for 9to5Mac. Since joining in 2016 he has written more than 3,000 articles including breaking news, reviews, and detailed comparisons and tutorials.