Two-factor authentication is an identity and access management security method. It serves to protect user accounts from unauthorized access. This method implies using two different forms of validating the user's identity.
Typically, 2FA is ensured by sending a one-time password (OTP) when a user attempts to log in to their account. OPT is sent to the mobile phone number the user provided when setting up the account. This way, it’s impossible for an intruder to get access to the account even if the account details (login and password) were stolen.