Learn How to Autofill SMS Login Codes in iOS 12 and Mojave

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). So even if your username and password were revealed in a data breach, your account is safe if you use 2FA. We 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 iPhone, but you may instead be able to generate authentication codes with an app such as 1Password, Authy, or Google Authenticator, or LastPass. And yes, if you’ve followed our advice to use 1Password or LastPass as a password manager, their capabilities to generate and enter these codes is a nice bonus.

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:

  1. Start logging in to a site that requires 2FA via SMS with your username and password.

  2. When you’re prompted for your code, tap in the Enter Code field.

  3. When the text message arrives, instead of trying to remember and retype the six 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.

  4. 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:

  1. 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.

  2. 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.

  3. The code appears in a pop-up underneath the field under the “From Messages” tag. Click it to enter the code in the field.

  4. Submit the form to log in.

One final note. If you have a choice, use an authentication app instead of SMS for your 2FA codes. There are several ways a hacker could intercept an SMS text message meant for you and use that to complete a login. The chance of you being targeted like this is low, but there’s no reason not to use an authentication app instead to eliminate the worry. Plus, it means you can still log in even if your phone number changes, as it does if you use a different SIM card while traveling.

AI Usage Transparency Report

Pre-AI Era · Written before widespread use of generative AI tools

AI Signal Composition

Rep Tone Struct List Instr
Repetition: 33%
Tone: 52%
Structure: 45%
List: 9%
Instructional: 33%
Emoji: 0%

Score: 0.05 · Low AI Influence

Summary

Two-factor authentication (2FA) is a security measure that requires a user to provide two forms of verification, such as a password and a code sent via SMS or an authenticator app. This adds an extra layer of security to prevent unauthorized access to accounts.

Related Posts

Leaving Flickr: Migrating 20,000+ Photos to Synology and Taking Back Control

There’s a certain kind of friction you start to notice when you’ve been using a service for a long time. Not enough to make you leave immediately, but enough to make you pause. Flickr had been that kind of service for me. It quietly held years of photos, uploads from old phones, albums I hadn’t looked at in ages, and a massive "Auto Upload" collection that had grown into something I didn’t fully understand anymore.

Read more

How I Finally Passed the PMP Exam (After 12 Years of Waiting)

Back in 2013, I registered for a PMI membership with every intention of pursuing my PMP certification. I downloaded the handbook, bookmarked the eligibility requirements, and even told a few friends that I was going to do it "soon." At the time, I thought getting certified would be a straightforward process, but little did I know what lay ahead in terms of studying and preparation.

Read more

The Evolution of Apple Certification: A Journey Through Versions, Challenges & Growth

When I recently passed the Apple Certified Support Professional (ACSP) exam again, I paused to reflect — not just on this milestone, but on the long path I’ve walked through Apple’s certification landscape. My first certification dates back to macOS 10.5, and over the years, I’ve earned credentials across nearly every version since. In that time, the exams — and Apple itself — have transformed significantly.

Read more

Secure Software, Secure Career: How I Passed the CSSLP

After passing the CISSP earlier this year, I decided to follow it up with the **Certified Secure Software Lifecycle Professional (CSSLP)** certification. For those unfamiliar, CSSLP is an ISC2 certification that focuses specifically on secure software development practices across the full SDLC—from requirements and design to coding, testing, deployment, and maintenance. My goal in pursuing this certification was to further develop my skills in ensuring the security of software throughout its entire lifecycle.

Read more

Managing Bring Your Own Device (BYOD) for Android with Microsoft Intune

Alright, so today we're going to be talking about the management of bring your own device BYOD for Android devices. There's a lot of information out there for the management of iOS devices and you can do that with pretty much any Apple MDM on the market. We just happen to use Jamf where I work, but you could use anything from Braavos to SimpleMDM to Kanji or JumpCloud. Mosyle is also a great option.

Read more

BYO with me in 2025: iOS with User Enrollment in JAMF Pro

It really depends on your company's needs. For example, many companies need to hire 1099 contractors and in such a case they come with their own devices but not the correct security settings or enforcements. Remember BYOD is a security construct. The idea here is that you should be securing the company's sensitive data in all forms. This may involve implementing policies for contractor-owned devices, ensuring that all devices accessing company data meet minimum security standards, and regularly reviewing and updating these standards to stay ahead of emerging threats.

Read more

Securing BYOD Email Access: Exploring Strategies in Microsoft 365

In today’s mobile-first world, organizations increasingly rely on Bring Your Own Device (BYOD) programs to empower employees while optimizing costs. However, this flexibility introduces unique challenges, particularly around securing email access. To mitigate risks, we are implementing a comprehensive strategy to block email access on non-company devices by default and ensure only sanctioned apps can access organizational email accounts. This approach will help prevent unauthorized access and data breaches, aligning with our commitment to maintaining the security and integrity of company communications.

Read more

How I Conquered the CISSP Exam: 9 Months, Top Resources, and Proven Strategies

Passing the CISSP (Certified Information Systems Security Professional) exam is no small feat. It’s known for its breadth, depth, and ability to test not just your knowledge but your practical understanding of cybersecurity. After nine months of intense preparation, I’m thrilled to say I’ve joined the ranks of CISSP-certified professionals! Here's a detailed account of my experience, including the resources I used, some tips that helped me along the way, and what I learned from the process itself.

Read more

Get more out of scripting than you may expect

Expect is an extension to the Tcl scripting language written by Don Libes. The program automates interactions with programs that expose a text terminal interface. Expect, originally written in 1990 for the Unix platform, has since become available for Microsoft Windows and other systems. Its functionality allows users to interact with these programs through scripted commands, eliminating the need for manual input.

Read more