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

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

Apple Retail Staff Told to Warn Against iPhone Duo Walk-In Purchases

Saturday October 17, 2026 2:30 pm PDT by
Some Apple retail employees have been told to warn customers against visiting to purchase an iPhone Duo without a pre-order on Friday, October 23. Apple Store employees told MacRumors that they have been advised that there will likely be no iPhone Duo stock available for walk-in purchases on launch day. Staff have been instructed to discourage customers without pre-orders from coming in...
iPhone Handoff Feature

Verizon Will Charge $10 a Month for iPhone Handoff

Friday October 16, 2026 4:37 pm PDT by
Verizon plans to charge customers $10 per month for the iPhone Handoff feature that Apple added in iOS 27. iPhone Handoff allows one phone number to be shared across two separate iPhones. Pricing was included in Verizon's iPhone Duo announcement today, with the carrier confirming iPhone Handoff will work with the iPhone Duo and the iPhone 18 Pro models. Verizon will support iPhone Handoff,...
iphone duo feature

Mark Gurman: Apple Made 'Major Mistake' With iPhone Duo Pre-Orders

Sunday October 18, 2026 7:33 am PDT by
Despite knowing that the iPhone Duo would face "severe supply constraints" due to manufacturing challenges, Apple chose to begin iPhone Duo pre-orders on Friday instead of waiting until it had more inventory ready, according to Bloomberg's Mark Gurman. In his Power On newsletter today, he called this decision a "major mistake." "Let me cut to the chase: Apple made a major mistake here," he...
Latest Stories
Amazon Discounts New Mac Mini by Up to $149, Mac Studio by $200
Amazon Discounts New Mac Mini by Up to $149, Mac Studio by $200
13 hours ago
Apple Expected to Release New Products on Next Four Fridays
Apple Expected to Release New Products on Next Four Fridays
15 hours ago
Apple Reveals iPhone Duo's Battery Capacity
Apple Reveals iPhone Duo's Battery Capacity
18 hours ago
Apple Planning 'HomeView Max' With 9-Inch, 360-Degree Screen
Apple Planning 'HomeView Max' With 9-Inch, 360-Degree Screen
18 hours ago
Mark Gurman: Apple Made 'Major Mistake' With iPhone Duo Pre-Orders
Mark Gurman: Apple Made 'Major Mistake' With iPhone Duo Pre-Orders
19 hours ago
Apple Retail Staff Told to Warn Against iPhone Duo Walk-In Purchases
Apple Retail Staff Told to Warn Against iPhone Duo Walk-In Purchases
2 days ago
Apple Hires Former Meta Lawyer to Oversee Global Litigation
Apple Hires Former Meta Lawyer to Oversee Global Litigation
2 days ago
Top Stories: Apple HomeView, New Apple TV and HomePod mini, and Sold-Out iPhone Duo
Top Stories: Apple HomeView, New Apple TV and HomePod mini, and Sold-Out iPhone Duo
2 days ago
Verizon Will Charge $10 a Month for iPhone Handoff
Verizon Will Charge $10 a Month for iPhone Handoff
2 days ago
Apple Calls iPhone Duo Demand 'Extraordinary' After Orders Slip to 2027
Apple Calls iPhone Duo Demand 'Extraordinary' After Orders Slip to 2027
2 days ago
New App Store Rules Target AI Deepfakes and Nudify Apps
New App Store Rules Target AI Deepfakes and Nudify Apps
2 days ago
Didn't Pre-Order Apple's HomeView? Here's How Long the Wait is Now
Didn't Pre-Order Apple's HomeView? Here's How Long the Wait is Now
3 days ago
Apple's $79 iPhone Duo Case Sticks On With Adhesive
Apple's $79 iPhone Duo Case Sticks On With Adhesive
3 days ago
Apple TV 4K and HomePod Mini Price Increases 'Much More Striking' Than New Features
Apple TV 4K and HomePod Mini Price Increases 'Much More Striking' Than New Features
3 days ago
The MacRumors Show: Was HomeView Worth the Wait?
The MacRumors Show: Was HomeView Worth the Wait?
3 days ago
Apple Refers to HomeView as 'HomePodDevice' in Legal Document
Apple Refers to HomeView as 'HomePodDevice' in Legal Document
3 days ago
Apple Pre-Orders Kick Off With First Discounts on HomeView and Apple TV 4K
Apple Pre-Orders Kick Off With First Discounts on HomeView and Apple TV 4K
3 days ago
Developers Question Scope of Potential Apple Antitrust Settlement
Developers Question Scope of Potential Apple Antitrust Settlement
3 days ago
iPhone Duo Resold for $5,000 on eBay After Selling Out
iPhone Duo Resold for $5,000 on eBay After Selling Out
3 days ago
Massive Discounts Hit 2026 MacBook Pro With Up to $800 Off
Massive Discounts Hit 2026 MacBook Pro With Up to $800 Off
3 days ago
iPhone Duo is Sold Out for Christmas as Shipping Estimates Slip to 2027
iPhone Duo is Sold Out for Christmas as Shipping Estimates Slip to 2027
3 days ago
Didn't Pre-Order an iPhone Duo Yet? Wait Times Are Significant Now
Didn't Pre-Order an iPhone Duo Yet? Wait Times Are Significant Now
3 days ago
First Apple TV 4K Pre-Order Discount Arrives at Amazon
First Apple TV 4K Pre-Order Discount Arrives at Amazon
3 days ago
iPhone Duo Pre-Order Deals: The Best Carrier Offers From AT&T and T-Mobile
iPhone Duo Pre-Order Deals: The Best Carrier Offers From AT&T and T-Mobile
3 days ago
iPhone Duo Now Available to Pre-Order From Apple
iPhone Duo Now Available to Pre-Order From Apple
3 days ago
iPhone 18 Pro vs. iPhone Duo Buyer's Guide: Which Should You Choose?
iPhone 18 Pro vs. iPhone Duo Buyer's Guide: Which Should You Choose?
3 days ago
Apple Store Down Ahead of iPhone Duo Pre-Orders
Apple Store Down Ahead of iPhone Duo Pre-Orders
3 days ago
Oops, Apple's Website Just Hinted at iPad Mini 8
Oops, Apple's Website Just Hinted at iPad Mini 8
3 days ago
OLED MacBook Pro Won't Get M7 Chips Until Late 2027
OLED MacBook Pro Won't Get M7 Chips Until Late 2027
3 days ago
Apple Pledged $25 Million to Trump's White House Ballroom
Apple Pledged $25 Million to Trump's White House Ballroom
4 days ago