Two-factor authentication checks two different things. For example, you know your password and you have the phone that generates a code.
Example
You sign in to email on a new laptop and are asked for an authenticator code.
Why it’s dangerous
A leaked password can be enough to open an account that has no second check.
What to do
Decline a prompt you did not request. Open the service yourself and check recent sign-ins. End unfamiliar sessions and change the password if access looks compromised.
How to avoid it
- Enable 2FA from the real service's security settings.
- Save backup codes apart from the device you might lose, and test the new method before closing your existing session.