Imagine: you bought a brand new iPhone, decided to enter it using your Apple ID account, but ... unsuccessfully. And it's not a banal logon error, but the fact that when enabled two-factor authorization must confirm the input to iCloud from one of the older devices.
The problem is that in most cases the verification code does not appear on the other device, often because the user sells the old iPhone before buying a new one. By trial and error, buyers of the new iPhone still found a solution to the problem. And quite simply - disconnect the iCloud keychain.
So, to log in iCloud on the new device, you need to go to Settings - iCloud, where to switch the toggle switch near the iCloud keychain to the "Off". After that, restart the iPhone in the usual way (the Power button), and then re-activate the keychain.
It will be necessary to enter the password from the phone and the password of the iCloud account to perform authorization.
Another inconvenience associated with two-factor authorization concerns password recovery from an account. So, if you do not have access to devices based on iOS 10 (or newer) or macOS Sierra (or newer), you will not only have to enter the verification code sent to your mobile phone and a number of other data, but also wait after that from 1 to 3 nights. At this time, the account will remain blocked.