How to Use Two-Factor Authentication When Logging In to a New Device

* This post is part of iPhone Life's Tip of the Day newsletter. . *

Using two-factor authentication helps ensure that the accounts associated with your Apple ID are safe. Even if someone has your login name and password, they won't be able to access your accounts without a verification code from a trusted phone number or one of your trusted devices. Once you verify a new device, you won't need to use two-factor authentication again unless you sign out of it completely, erase your device, or change your password. Similarly, when signing in on the web, you can choose to trust that browser so that you don't have to go through the verification process each time you sign into your account on your computer. Let's go over the steps of signing in to a new device or iCloud account with two-factor authentication.

Related: How to Turn Off Apple Two-Factor Authentication for iPhone in iOS 11

For this to work, you'll need to make sure two-factor authentication is enabled on your iPhone. Apple has made two-factor authentication the default for a while now. But some people may still have chosen to opt out. If you aren't sure whether you have two-factor authentication enabled, please follow this link to get started. For this example, I'll log in to Messages on a Mac. To begin: 

  • When you attempt to log in to an account such as Messages on your Mac with your Apple ID and password, a notification like the one below will pop up.

two factor authentication apple​   

  • You will now receive a notification like this one on a trusted device. Tap Allow.
verify new device with two factor authentication
  • You'll receive a message on your iPhone like the one below.
two factor authentication iphone
  • Now you can enter your Apple ID  and your password plus the Apple ID Verification Code you received added on to the end of the password and tap sign in.
2 factor authentication apple
  • You'll receive a notification like the one below on your trusted device; tap OK.
2 factor authentication iphone

Top image credit: sergey causelove /

Master your iPhone in one minute a day: Sign up here to get our FREE Tip of the Day delivered right to your inbox.


Author Details

Leanne Hays's picture

Author Details

Leanne Hays

Leanne Hays is a Feature Writer at iPhone Life, and has written hundreds of in-depth how-to and troubleshooting articles. She's a former Associate Editor for iPhone Life magazine, and has written for the Iowa Source, as well as web content for education marketing. Leanne has an associate's degree in education, with a focus on curriculum development, as well as a bachelor's degree in science. She has over nine years of experience with SEO, social media management, and web development and writing. Despite years of web work, Leanne is by no means an early adapter; she's only owned a smartphone for five years, which makes her highly sympathetic to the learning curve of new iPhone owners. She enjoys making reader's lives easier and putting her education experience to work by walking them through the most practical ways to use Apple devices, step-by-step.

In off-work hours, Leanne is a mother of two, homesteader, audiobook fanatic, musician, and learning enthusiast.