What is two-factor authentication (2FA)?

In short

Two-factor authentication (2FA) is a sign-in or approval that requires two different kinds of evidence, drawn from something the user knows, something the user has and something the user is. Two-factor authentication means that a stolen password alone is not enough, because the attacker also needs the user's device, fingerprint or face.

Also called
2FA, Two-step verification, Multi-factor authentication, MFA
Family
App and data security
Facts checked

How two-factor authentication works

The first factor is usually a password or a PIN. The second is commonly one of these:

  • A one-time code sent by SMS or email
  • A code from an authenticator app, generated from a shared secret and the time
  • A push notification approved in a registered app
  • A hardware security key or a passkey, which signs a challenge
  • A fingerprint or face check on a bound device

Not every second factor is equal

A code that a person reads and types can be phished: a fake page asks for the code and replays it within seconds. SMS codes are also exposed to SIM swap fraud, in which the attacker takes over the phone number.

Factors that sign a challenge tied to the genuine site or app, such as security keys, passkeys and approvals on a bound device, resist that attack. Two items of knowledge, a password and a memorable word, are not two factors.

Two-factor authentication and the rules for payments

PCI SSC's glossary defines multi-factor authentication as verifying at least two factors: something the user has, something the user knows, or something the user is or does.

In EU payments law the counterpart is strong customer authentication, which asks for more than general 2FA does. The elements have to be independent, so that the breach of one does not compromise the others, and for a remote electronic payment the authentication is dynamically linked to the amount and the payee (PSD2, Articles 4(30) and 97).

2FA, MFA or two-step verification?

Multi-factor authentication
Two or more factors. 2FA is the case of exactly two, and in practice the words are used interchangeably.
Two-step verification
Two steps that may be of the same kind, such as a password and then a code sent to an email account. Weaker than two factors of different kinds.
Strong customer authentication
The legal standard for payments in the EU, with its own rules on independence, dynamic linking and exemptions.

Where two-factor authentication shows up in a platform

Modules that do the work

Platforms that need it

Where it is written

The laws and standards this page's facts come from.

General information, not legal advice: what applies to you depends on your services and your market.

Every term

Start your project

Tell us the idea. We'll show you the platform.

One call is enough to map your product to the modules that already exist.

  • Response in under one business day
  • NDA on request
  • No obligation
How can we help?