About two-step verification
Two-step verification helps protect you by making it more difficult for someone else to sign in to your Microsoft account.
If you turn on two-step verification, you’ll get a security code to your email, phone, or authenticator app every time you sign in on a device that isn't trusted. When it’s turned off, you only get and re-send security codes periodically, and when there might be a risk to your account security.