To learn about the various ways to get a verification code and sign in with two-factor authentication, read this support article --> Get a verification code and sign in with two-factor authentication - Apple Support
- Use a Trusted Device: Mac, iPhone, iPad, Watch. Code is either generated automatically or manually using Settings on the Trusted Device.
- Text or phone call to a trusted telephone number (any telephone; even landlines).
- Get a code from an Account Recovery Contact --> Set up an account recovery contact - Apple Support
- Instructions at the end about what to do if you cannot get a code and need to use account recovery.