I may earn a commission on purchases made through links on this page.
An ever-increasing number of Web sites boost their security via two-factor authentication (2FA), which requires you to type in a short numeric code to complete a login after entering your username and password. It’s a big win because that code is generated on the fly and is good for only a short time (often 30 seconds to a few minutes). So even if your username and password were revealed in a data breach, your account is safer if you use 2FA. I recommend using it whenever possible.
You get these codes—usually six digits—in one of two ways. The most common is via an SMS text message to your cell phone, but you may instead be able to generate authentication codes with an app such as 1Password, Authy, or Google Authenticator, or LastPass.
Many sites support only the SMS text message approach, however, so Apple added features to iOS 12 and macOS 10.14 Mojave that simplify entering the codes sent via SMS.
Autofill SMS codes in iOS 12
In iOS 12, the trick to easier entering of the code is to use the QuickType bar above the standard iOS keyboard, where iOS suggests auto-complete options. Follow these steps:
- Start logging in to a site that requires 2FA via SMS with your username and password.
- When you’re prompted for your code, tap in box provided to enter the code.
- When the text message arrives, instead of trying to remember and retype the digits, look at the QuickType bar at the top of the keyboard, where iOS 12 displays “From Messages” and the code. Tap it to enter the code in the field.
- Submit the form to log in.
Autofill SMS codes in Mojave
In Mojave, Apple did something similar with autocomplete, but it works only in Safari, so if you prefer Google Chrome or Firefox, you’re out of luck. Follow these steps:
- Using Safari, start logging in to a site that requires 2FA via SMS with your username and password, after which you’re prompted for a code.
- When the text message arrives, instead of trying to remember and retype the six digits from your iPhone or the macOS notification, click in the Enter Code field.
- The code appears in a pop-up underneath the field under the “From Messages” tag. Click it to enter the code in the field.
- Submit the form to log in.
One final note. If you have a choice, use an authentication app instead of SMS (text message) for your 2FA codes. There are several ways a hacker could intercept an SMS message meant for you and use that to complete a login (They can call up your cell phone company and say “Hi, I’m Sally Sitwell and I got a new phone, can you transfer my service?). The chance of you being targeted like this is low, but it does happen. Using an authentication app like Google Authenticator eliminates that worry. Plus, it means you can still log in even if your phone number changes, or if you use a different SIM card while traveling.
If you are an existing customer who needs help with this or if you have other questions, or if you are in San Francisco and interested in becoming a client I invite you to book an appointment with me. Otherwise, you may wish to contact Apple Support or find a local Apple consultant.
For more tips like this delivered directly to your inbox sign up for my email list:
(Featured image by James Sutton on Unsplash)