Most readers will have at some point received a two-factor authentication code delivered to them by SMS text message. Many apps and websites send the one-time codes to confirm that the person attempting to log in to an account is the legitimate account holder, and not just someone using a stolen password.

Depending on how notifications are set up on your iPhone, receiving a code via text message may mean that you have to switch out from the app or website to read the message and memorize or copy the code, and then switch back to paste it or type it into the login screen manually.

ios 12 secure code autofill 1
To make this process less of a hassle, Apple is introducing Security Code AutoFill for iOS 12. The new feature ensures that SMS one-time passcodes that you receive instantly appear as AutoFill suggestions in the QuickType bar above the virtual keyboard, letting you input them in the passcode field with a simple tap.

If you've enabled Text Message Forwarding on your iPhone, you can use the Secure Code AutoFill feature in macOS Mojave, too. The code should appear in Safari as an AutoFill option in the relevant field as soon as the SMS is delivered to Messages on your Mac.

secure code autofil mojave 2
iOS and macOS use local data detector heuristics to work out whether an incoming message carries a security code, and Apple says the Security Code AutoFill feature does not alter the security of this two-factor authentication method.

So as long as developers craft their secure code text messages correctly, Security Code AutoFill should work in all third-party apps updated for iOS 12 and macOS Mojave, which are due for official public release this fall.

Related Forums: macOS Mojave, iOS 12

Top Rated Comments

BootsWalking Avatar
82 months ago
Cool idea, but 2FA via SMS is inherently insecure and shouldn't be encouraged. However if Apple were to allow third-parties to deliver them over iMessage it would be secure and very convenient.
Score: 5 Votes (Like | Disagree)
martyjmclean Avatar
82 months ago
I’m keen as for this feature!
Score: 2 Votes (Like | Disagree)
adrianlondon Avatar
82 months ago
Not working for me. I'm not currently testing on my phone, although when I did try it a few weeks ago it didn't work there either. Running 10.14 dev beta 7.

This is the SMS I got:
mTAN for your new login:123456

And attached is a pic showing the field that expects it. No auto-fill available. It's a shame, as it would be a great feature. Hopefully they'll enhance it over time as Apple learns the format of various SMS authentication texts.

Attachment Image
Score: 1 Votes (Like | Disagree)

Popular Stories

best buy holiday

Best Buy Reveals Black Friday Plans With Sitewide Sales Available Now

Friday November 8, 2024 10:05 am PST by
Black Friday sales are continuing today with Best Buy kicking off early Black Friday deals that will last for the next few days. Similar to other retailers, Best Buy's early Black Friday event includes sitewide savings on Apple products, headphones, TVs, monitors, video games, and more. Note: MacRumors is an affiliate partner with Best Buy. When you click a link and make a purchase, we may...
mac mini thermal architecture feature

New Mac Mini Has Modular Storage, 256GB Model Will Have Faster SSD

Friday November 8, 2024 7:06 am PST by
Apple has returned to using two 128GB storage chips in the new Mac mini with 256GB of storage, according to a partial teardown video shared on social media today. This means the base-model Mac mini with the M4 chip will not have significantly slower SSD speeds compared to higher-end configurations of the computer with 512GB, 1TB, or 2TB of storage, as multiple NAND chips allows for faster SSD...
iphone passcode green

Cops Suspect iOS 18 iPhones Are Communicating to Force Reboots, Making Unlocking Harder

Thursday November 7, 2024 2:20 pm PST by
Law enforcement officials in Detroit, Michigan are warning other police officers about an alleged iPhone change that causes Apple devices stored for forensic examination to spontaneously restart, reports 404 Media. iPhones that are undergoing examination have apparently been rebooting, which makes them harder to unlock with brute force methods, and Michigan police think that it's due to a...
Generic iOS 18

Everything New in iOS 18.2 Beta 2

Monday November 4, 2024 12:34 pm PST by
Apple today seeded the second betas of upcoming iOS 18.2 and iPadOS 18.2 updates to developers, and Apple is continuing to refine the Apple Intelligence capabilities. There are also a handful of smaller features that are worth knowing about. Find My Find My has a new option to Share Item Location with an "airline or trusted person" that can help you locate something that you've misplaced....
maxresdefault

Hands On With Apple's New M4 Mac Mini

Friday November 8, 2024 12:21 pm PST by
Apple launched the new Mac mini, iMac, and MacBook Pro models with M4 chips today, and because the Mac mini is the only one of the machines that got a design update, we thought we'd check it out to see how it compares to the prior version. Subscribe to the MacRumors YouTube channel for more videos. The 2024 version of the Mac mini is much smaller than the previous M2 model, so it takes up...
High Power Mode Feature 2

Apple Expands High Power Mode to MacBook Pro and Mac Mini Models With M4 Pro Chip

Thursday November 7, 2024 12:15 pm PST by
High Power Mode is available on the 14-inch MacBook Pro, 16-inch MacBook Pro, and Mac mini models with the M4 Pro chip, according to Ars Technica's Andrew Cunningham. The feature was previously limited to Macs with Apple's highest-end "Max" chip, so this is the first time it is available on Macs with a "Pro" chip. This is the second time that Apple has expanded availability of High Power...
next generation carplay multi display

Here's the Latest on Next-Generation CarPlay After 2.5 Years of Waiting

Wednesday November 6, 2024 8:33 am PST by
It has been nearly two and a half years since Apple first previewed next-generation CarPlay at WWDC 2022, and it has still yet to become available in any vehicles. Below, we recap the latest information about next-generation CarPlay. Launch Timing Apple's website continues to say that the first vehicles with next-generation CarPlay support will "arrive in 2024," but it has yet to provide ...
Apple MacBook Pro M4 hero

Skipping the New MacBook Pro? Here Are the Rumors About M5 Models

Friday November 8, 2024 9:35 am PST by
The new 14-inch and 16-inch MacBook Pro models with M4, M4 Pro, and M4 Max chips launched in stores today. If you are not planning to upgrade this year, be aware that there are already rumors about next year's MacBook Pro models with M5 series chips. It appears the MacBook Pro will remain on an annual upgrade cycle next year. Apple supply chain analyst Ming-Chi Kuo today said camera module...