Skip to content
Finic
Identity and compliance

What is a one-time password (OTP)?

A one-time password is a short code that is valid for a single login or action, sent by SMS or email or made by an authenticator app, and used as a second factor.

Also called: OTP, one-time passcode, verification code

How it works

An OTP proves that the user holds a phone, an inbox or a device. It is often one part of multi-factor authentication, or a check before a risky action.

  • SMS OTP: the service texts a code to the user's phone number.
  • Email OTP: the code or a link goes to the user's email address.
  • TOTP: an authenticator app makes a time-based code from a secret shared at setup, so nothing is sent over the network at login.

Weaknesses

OTPs are better than a password alone, but attackers have many ways around them. Because the user types the code into a page, it can be stolen as easily as a password.

  • SIM swap: an attacker moves the victim's number to a new SIM and receives the codes. See SIM swap.
  • Interception: malware on the phone, or weaknesses in the phone network, can expose SMS codes.
  • Phishing relay: a fake login page passes the victim's password and OTP to the real site in real time.
  • OTP bots: automated calls that pose as the bank and ask the victim to read out the code.
  • SMS pumping: fraudsters trigger many OTP texts to premium numbers they profit from, so the service pays the toll.

Example

A hypothetical customer gets a call that seems to come from their bank. A recorded voice says a payment needs to be stopped and asks for the code just sent by text. The code was triggered by an attacker who has the password, and reading it out completes the takeover.

How teams make OTPs safer

Teams prefer TOTP or, better, a passkey, which cannot be typed into a fake page. Where SMS stays, they rate limit OTP requests per number and region, block premium-rate ranges, explain in the message what the code is for, and check device and network risk before trusting a correct code.

← All glossary terms

Ship fraud, bot and KYB checks in minutes.

Start with $5 of free credit, or copy a prompt and let your coding agent set Finic up.

Sign up See pricing