![One-time passwords and 2FA codes — what to do if you receive one without requesting it](https://media.kasperskydaily.com/wp-content/uploads/sites/102/2024/02/08234357/unexpected-login-codes-otp-2fa-featured-700x460.jpg)
What to do when you receive unsolicited messages containing login codes
One-time codes and two-factor authentication securely protect you from account theft. If you receive such a code or a request to enter it when you aren’t logging in, it may be an attempt to hack into your account.