This blog post goes over the challenges that travelers and mobile small businesses might have with two-step verification. Unfortunately, the Windows app mentioned is no longer available. (The GitHub site is read only now.) The Mac app mentioned still works but doesn’t work for Apple itself.
As of this month (Feb. 2021), Apple will be requiring two-factor (NOT two-step) verification. If you have Macs running the El Capitan operating system, you will still be able to use the two-step verification. If your Mac is running High Sierra or above, you will need the two-factor verification. That will need to be connected to a phone number in the same country where the computer is registered.