Two-factor authentication (2FA) is a secondary security measure under which you’re provided with an access code for a particular account after entering your username and password. Apple allows its customers to set up 2FA for their iCloud accounts, and get codes from their circle of trusted devices, like their iPhone, iPad, or Mac.

Setting up 2FA is a fairly stragihtforward task, and here’s how you can do it.