iPhone/iPad - 2-factor authentication enabled (on) Mac - 2-factor authentication enabled (on)

Get verification code for two-factor authentication

Here, we will use the screen of the iPhone to see how to get it, but you can get the verification code on the iPad (more or less) in the same way.