Two-Factor Authentication (2FA) is an extra layer of security used to ensure that people trying to gain access to an online account are who they say they are.
Instead of just asking for a username and password, 2FA requires an additional piece of information.
A code sent via SMS/email
A code generated by an authenticator app
A hardware key
Biometrics (like fingerprint or face scan)
⚙️ How It Works
User enters username & password ✅
If correct, they are asked for a one-time code (OTP) 🔒
This code is sent to their email/phone or generated via an authenticator
Only after entering the correct OTP are they granted access ✅✅