GlossaryDevelopment

Two-factor authentication (2FA)

Also called: 2FA, multi-factor authentication, MFA

Definition

A sign-in method that requires two different kinds of proof before granting access, typically something you know, like a password, plus something you have, like a phone or security key, so a stolen password alone is not enough to get in.

Common methods

Factors fall into three groups: something you know (a password or PIN), something you have (a phone, authenticator app or hardware key) and something you are (a fingerprint or face). 2FA combines two; multi-factor authentication (MFA) is the broader term.

Methods differ in strength. SMS codes are familiar but vulnerable to SIM swaps and interception. Authenticator app codes are stronger. Push approvals are convenient but can be abused through repeated prompts. Hardware security keys and passkeys, which use device-bound cryptography, resist phishing best and are increasingly supported by browsers and phones.

Many products also use risk-based checks, asking for a second factor only when something looks unusual, such as a new device, a new location or a sensitive action.

Why it matters for your website or product

Stolen and reused passwords are among the most common causes of account takeover. For any product that shows financial data or moves money, 2FA is a baseline expectation from customers, partners and security reviewers. It matters even more for internal tools: a staff account with admin rights is a bigger target than any single customer account.

The friction is real, so design matters. Clear setup, remembered trusted devices, backup codes and a recovery process that is secure but not impossible keep people from being locked out or giving up.

How we handle it

We require MFA for admin and staff access by default and offer it to customers, with passkeys or authenticator apps preferred over SMS. Sensitive actions, like changing bank details or payout destinations, can ask for a fresh check even in an active session. Recovery flows are designed with your support team, since they are a common attack path. See dashboards and portals, customer portals and our security page.

Example

Take a payments platform where a merchant's password is reused from a breached site. An attacker signs in and tries to change the payout bank account. Because changing payout details requires a passkey confirmation from the merchant's phone, the attempt fails and the merchant is alerted.

Common mistakes

  • Relying only on SMS codes for high-risk accounts.
  • Requiring 2FA for customers but not for staff and admin accounts.
  • Building an account recovery path that bypasses 2FA with a simple email link.
  • Asking for a second factor on every page load, which trains people to approve blindly.

Questions, answered

Still deciding? Book a 30-minute call.

  • SMS two-factor authentication is much better than a password alone but is the weakest common 2FA method. Codes can be intercepted through SIM swaps or phishing. For financial products and admin accounts, prefer passkeys, hardware keys or authenticator apps, and keep SMS as a fallback only where your risk assessment allows it.

  • 2FA requires exactly two factors to sign in, while MFA means two or more. In practice the terms are often used interchangeably, since most multi-factor setups use two. What matters more than the label is which factors you use, how phishing-resistant they are and how account recovery works.

Start building this week

Subscribe online in a minute, or talk it through on a call first.