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...
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...
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...
Latest Stories
Everything New in iOS 27.3 Beta 2
Everything New in iOS 27.3 Beta 2
6 hours ago
Apple Plans to Release These 18 New Products Next Year
Apple Plans to Release These 18 New Products Next Year
8 hours ago
New Apple TV 4K Discount Returns at Amazon
New Apple TV 4K Discount Returns at Amazon
9 hours ago
iPhone Duo Orders Will Now Arrive Before the Holidays
iPhone Duo Orders Will Now Arrive Before the Holidays
9 hours ago
Hands-On With the iPhone Duo's New Face Unlock
Hands-On With the iPhone Duo's New Face Unlock
9 hours ago
macOS 27.3 Warns Against Giving AI Apps Full Mac Control
macOS 27.3 Warns Against Giving AI Apps Full Mac Control
9 hours 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
10 hours ago
Apple News+ Puzzles Come to UK, Australia, and French Canada
Apple News+ Puzzles Come to UK, Australia, and French Canada
11 hours ago
macOS Golden Gate 27.3 Beta 2 Now Available for Developers
macOS Golden Gate 27.3 Beta 2 Now Available for Developers
11 hours ago
Apple Celebrates Pokémon With iPhone Wallpapers and Special Gift Card
Apple Celebrates Pokémon With iPhone Wallpapers and Special Gift Card
11 hours ago
Apple TV App Gets Video Podcasts in iOS 27.3
Apple TV App Gets Video Podcasts in iOS 27.3
12 hours ago
Best Early AirPods Black Friday Deals Include AirPods Pro 3 for $179
Best Early AirPods Black Friday Deals Include AirPods Pro 3 for $179
12 hours ago
iOS 27.3 Adds 'Ask About Page' Siri AI Feature to Safari
iOS 27.3 Adds 'Ask About Page' Siri AI Feature to Safari
12 hours ago
Apple Says More Than 200,000 Apps Now Optimized for iPhone Duo
Apple Says More Than 200,000 Apps Now Optimized for iPhone Duo
12 hours ago
Apple Adds Facial Unlock Option on iPhone Duo in iOS 27.3
Apple Adds Facial Unlock Option on iPhone Duo in iOS 27.3
12 hours ago
iOS 27.3 Beta Adds Daily Siri AI Limits and iCloud+ Upgrades
iOS 27.3 Beta Adds Daily Siri AI Limits and iCloud+ Upgrades
12 hours ago
iOS 27.3 Beta 2 Now Available for Developers
iOS 27.3 Beta 2 Now Available for Developers
12 hours ago
Apple Launches Spanish Version of Its U.S. Website
Apple Launches Spanish Version of Its U.S. Website
12 hours ago
Apple Releases Second watchOS 27.3, tvOS 27.3 and visionOS 27.3 Betas
Apple Releases Second watchOS 27.3, tvOS 27.3 and visionOS 27.3 Betas
12 hours ago
Some OLED MacBook Pro Owners Report Eye Strain and Dizziness
Some OLED MacBook Pro Owners Report Eye Strain and Dizziness
13 hours ago
Didn't Order Apple's HomeView Yet? Wait Times Are Significant Now
Didn't Order Apple's HomeView Yet? Wait Times Are Significant Now
14 hours ago
Apple Pushes Back Against Canada's Plan to Access User Data
Apple Pushes Back Against Canada's Plan to Access User Data
14 hours ago
Black Friday TV Deals Include Year's Best Prices on Samsung, Sony, LG, and Many More
Black Friday TV Deals Include Year's Best Prices on Samsung, Sony, LG, and Many More
15 hours ago
Adobe's Black Friday Sale Takes 57% Off Creative Cloud Pro for Your First Year
Adobe's Black Friday Sale Takes 57% Off Creative Cloud Pro for Your First Year
16 hours ago
Apple's New HomeView Smart Home Hub Has Issues, Say Owners
Apple's New HomeView Smart Home Hub Has Issues, Say Owners
16 hours ago
'Slow Horses' to Hit 10-Season Milestone With Apple TV Renewal
'Slow Horses' to Hit 10-Season Milestone With Apple TV Renewal
16 hours ago
Apple Watch SE 3 Black Friday Deals Arrive With $50 Off Every Model
Apple Watch SE 3 Black Friday Deals Arrive With $50 Off Every Model
17 hours ago
Apple Confirms iOS 27.3 Beta 2 Coming Today
Apple Confirms iOS 27.3 Beta 2 Coming Today
17 hours ago
'iPhone 20 Pro' Rumored to Be Based on iPhone Air
'iPhone 20 Pro' Rumored to Be Based on iPhone Air
17 hours ago
iPhone 20 Pro Rumored to Feature New 17nm Camera Sensor
iPhone 20 Pro Rumored to Feature New 17nm Camera Sensor
18 hours ago