Multi-factor authentication (MFA) is an authentication method that requires two or more different types of factors to verify a user's identity. Factors are usually classified as something the user knows (a password or PIN), something the user has (a smartphone authenticator app, a hardware security key, or a one-time password generator), and something the user is (a fingerprint or face). When exactly two factors are used, the method is called two-factor authentication (2FA).
Its purpose is to limit the damage of credential theft: even if a password is leaked, an attacker cannot log in without the other factor. Common implementations include time-based one-time passwords (TOTP) generated by authenticator apps, hardware keys and passkeys based on the FIDO2 and WebAuthn standards, and SMS verification codes. Because MFA only verifies the user at login, it can be bypassed when an attacker captures an already issued session token or abuses permissions delegated to an OAuth application.