---
title: "Two-factor authentication (2FA)"
description: "Two-factor authentication (2FA) requires two different kinds of proof to sign in or approve an action: typically something you know (a password) plus something you have (a phone receiving a one-time code, an authenticator app or a security key)."
canonical: "https://omnichannels.ai/glossary/two-factor-authentication/"
language: "en"
updated: "2026-10-18"
publisher: "BroadNet Technologies"
brand: "OmniChannels.ai"
---

# Two-factor authentication (2FA)

Canonical: https://omnichannels.ai/glossary/two-factor-authentication/
Language: en
Publisher: OmniChannels.ai by BroadNet Technologies

**Definition:** Two-factor authentication (2FA) requires two different kinds of proof to sign in or approve an action: typically something you know (a password) plus something you have (a phone receiving a one-time code, an authenticator app or a security key).

The three factor types are knowledge (password, PIN), possession (phone, hardware key, app) and inherence (fingerprint, face). Two checks of the same type, such as a password plus a security question, are not true 2FA. Multi-factor authentication (MFA) is the general term for two or more factors.

Messaging OTPs are the most widely deployed possession factor because they need no app install. They are weaker than app-based or phishing-resistant methods: SIM-swap attacks, phishing pages that relay codes in real time and interception all exist. NIST SP 800-63B treats OTPs sent over the public telephone network (SMS or voice) as a "restricted" authenticator and asks verifiers to consider signals such as SIM change or number porting before using them.

For consumer services in the GCC and MENA, SMS and WhatsApp OTP remain the practical default for sign-up, login and payment approval; banks and payment providers often apply stricter rules set by their central bank or regulator. Offer a stronger option (authenticator app or passkey) for high-risk actions.

Design tips: send the second factor only after the password is correct, bind codes to a single session and action, and explain in the message what the code is for ("to approve a transfer of AED 500").

The main alternatives to message-based codes are time-based one-time passwords generated in an authenticator app (RFC 6238), push approvals in a mobile app, and passkeys based on FIDO2 and WebAuthn, which are bound to the site and resist phishing. Each trades convenience against strength. Passkeys and security keys are the strongest; SMS is the most universally reachable.

In practice many services layer them: offer an authenticator app or passkey for users who opt in, and use WhatsApp, SMS or voice as the default and recovery path. A common OTP waterfall sends the code by WhatsApp first, falls back to SMS if it is not delivered, and offers a voice call as the last resort.

Weaknesses to design around: SIM swaps, where an attacker moves the victim's number to a new SIM, real-time phishing that relays the code, and SMS pumping that abuses the sending endpoint. Mitigate with short code expiry, limited attempts, rate limits, notification of new devices and extra checks for high-value actions.

Measure completion rate and time to verify by channel and country. A falling completion rate is the earliest sign of delivery problems or of fraud.

## Sources

- [NIST SP 800-63B: Authentication and Authenticator Management](https://pages.nist.gov/800-63-4/sp800-63b.html)
- [RFC 6238: TOTP: Time-Based One-Time Password Algorithm](https://www.rfc-editor.org/rfc/rfc6238)
- [Web Authentication: An API for accessing Public Key Credentials Level 2 — W3C](https://www.w3.org/TR/webauthn-2/)