The Microsoft Authenticator app allows you to login into your accounts when two-step verification is enabled. Passwords can be lost, stolen, or compromised; thus, two-step verification will allow you to access your accounts more securely.
Check here: Microsoft authenticator app