How to Use Secure Code AutoFill in iOS 12 and macOS Mojave - MacRumors
Skip to Content

How to Use Secure Code AutoFill in iOS 12 and macOS Mojave

by

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: iOS 12, macOS Mojave

Top Rated Comments

108 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)
108 months ago
I’m keen as for this feature!
Score: 2 Votes (Like | Disagree)
adrianlondon Avatar
108 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

iPhone Duo Outer Display Hand

Apple Aiming to Upgrade the iPhone Duo in Four Ways

Sunday November 15, 2026 8:42 am PST by
Bloomberg's Mark Gurman today said Apple has four goals for future iPhone Duo models: Face ID, an Action button, a telephoto camera, and a thinner-and-lighter design. Gurman said Apple has already developed iPhone Duo 2 prototypes with Face ID on the outer display, but it is "running out of time" to finalize the feature for that model, so it might not arrive until the iPhone Duo...
Apple Health AI Study App Feature

Apple Just Released a New App

Monday November 16, 2026 9:43 am PST by
Apple today launched a new research study in the U.S. to explore the use of AI for health, and it has released a dedicated iPhone app for participants. In a press release, Apple said the study and app are "designed to advance the understanding of how people interact with conversational health AI tools." The Apple Health AI Study App contains a generative AI chatbot that participants can...
iphone duo yellow hand

Apple Adds Facial Unlock Option on iPhone Duo in iOS 27.3

Monday November 16, 2026 10:17 am PST by
Apple today added a new option for unlocking the iPhone Duo using the front-facing camera, giving device users multiple ways to access their content. The feature is available in the second iOS 27.3 beta. The option to unlock with facial recognition is only available on the Lock Screen, and authentication via Touch ID is still needed for Apple Pay purchases, adding passwords and logins, and...
Latest Stories
Aqara Debuts Six Matter Smart Lights That Work With Apple Home
Aqara Debuts Six Matter Smart Lights That Work With Apple Home
8 hours ago
Disney+ and Hulu Will Fully Merge Into One App in December
Disney+ and Hulu Will Fully Merge Into One App in December
8 hours ago
iFixit Says Apple's HomeView is Unnecessarily Hard to Repair
iFixit Says Apple's HomeView is Unnecessarily Hard to Repair
11 hours ago
Final Cut Pro Now Includes MotionVFX for Creator Studio Users
Final Cut Pro Now Includes MotionVFX for Creator Studio Users
11 hours ago
Apple Blames Internal Update for Outage, Says It Wasn't a Cyberattack
Apple Blames Internal Update for Outage, Says It Wasn't a Cyberattack
13 hours ago
Nomad Launches Black Friday Sale With Up to 30% Off Apple Accessories
Nomad Launches Black Friday Sale With Up to 30% Off Apple Accessories
14 hours ago
Google Wallet Available on iPhone, But Without Tap to Pay
Google Wallet Available on iPhone, But Without Tap to Pay
14 hours ago
Apple Accounts, App Store and Apple Music Experiencing Issues
Apple Accounts, App Store and Apple Music Experiencing Issues
14 hours ago
Apple Moves Ahead With Better Dual SIM Support for Apps
Apple Moves Ahead With Better Dual SIM Support for Apps
15 hours ago
Former Apple Chairman Plans to Sell $32 Million in Apple Stock
Former Apple Chairman Plans to Sell $32 Million in Apple Stock
16 hours ago
Apple Accused of Silencing iPhone Duo Supplier Over 'Crackgate' Issue
Apple Accused of Silencing iPhone Duo Supplier Over 'Crackgate' Issue
16 hours ago
Apple Store App Now Optimized for iPhone Duo
Apple Store App Now Optimized for iPhone Duo
16 hours ago
Apple Says iCloud+ Plans Will Not Include Increased Siri AI Usage in UK
Apple Says iCloud+ Plans Will Not Include Increased Siri AI Usage in UK
17 hours ago
Amazon Offering Early Black Friday Discounts on TVs, Headphones, and Charging Devices
Amazon Offering Early Black Friday Discounts on TVs, Headphones, and Charging Devices
17 hours ago
Apple Now Sells DIY Repair Parts for iPhone Duo
Apple Now Sells DIY Repair Parts for iPhone Duo
17 hours ago
iPhone 20 Pro Screen Protectors Show Rumored Curved Design
iPhone 20 Pro Screen Protectors Show Rumored Curved Design
18 hours ago
MacBook Neo Black Friday Deals Arrive With $49 Discounts on Nearly Every Model at Amazon
MacBook Neo Black Friday Deals Arrive With $49 Discounts on Nearly Every Model at Amazon
19 hours ago
iPhone Users Targeted in Major Website Security Breach
iPhone Users Targeted in Major Website Security Breach
19 hours ago
Apple Names 'Baby, This Is Keke Palmer' Podcast of the Year
Apple Names 'Baby, This Is Keke Palmer' Podcast of the Year
20 hours ago
Apple Tests Bringing Back a Softer Side of Liquid Glass
Apple Tests Bringing Back a Softer Side of Liquid Glass
21 hours ago
Apple Close to Rare Long-Term Memory Deal With Samsung
Apple Close to Rare Long-Term Memory Deal With Samsung
22 hours ago
Everything New in iOS 27.3 Beta 2
Everything New in iOS 27.3 Beta 2
1 day ago
Apple Plans to Release These 18 New Products Next Year
Apple Plans to Release These 18 New Products Next Year
1 day ago
New Apple TV 4K Discount Returns at Amazon
New Apple TV 4K Discount Returns at Amazon
1 day ago
iPhone Duo Orders Will Now Arrive Before the Holidays
iPhone Duo Orders Will Now Arrive Before the Holidays
1 day ago
Hands-On With the iPhone Duo's New Face Unlock
Hands-On With the iPhone Duo's New Face Unlock
1 day ago
macOS 27.3 Warns Against Giving AI Apps Full Mac Control
macOS 27.3 Warns Against Giving AI Apps Full Mac Control
1 day ago
iPad and Mac Get Apple Intelligence in China in 27.3 Betas
iPad and Mac Get Apple Intelligence in China in 27.3 Betas
2 days ago
Apple News+ Puzzles Come to UK, Australia, and French Canada
Apple News+ Puzzles Come to UK, Australia, and French Canada
2 days ago
macOS Golden Gate 27.3 Beta 2 Now Available for Developers
macOS Golden Gate 27.3 Beta 2 Now Available for Developers
2 days ago