Explainer
Two-factor authentication adds a second form of proof to an account login. A stolen password alone may then be insufficient. The extra proof might come from an authenticator, a security key or another method offered by the provider.

The protection depends on the method and how it is used. A fraudulent sign-in page can still ask for a code, while an unexpected approval request may come from someone attempting access. Only approve a request that matches a login you initiated.
Keep recovery arrangements current before changing a phone. Save recovery codes securely when the provider supplies them and review its official recovery process. Enabling a safeguard is only part of the job; retaining a legitimate way back into the account matters too.
Related reading
- Password reuse turns one breach into several account problems
- How to switch phones without losing data
- More Tech coverage
Reference: consumer.ftc.gov — source material. General explanations and illustrative examples are identified in the text.