Passkeys or OTP?
How passkeys work, why they cannot be phished like an OTP, which devices support them, and how to add them next to the login you already have.
An OTP proves you can read a code sent to you. A passkey proves you hold a key made for this one website, unlocked by your fingerprint or screen lock. That difference is why passkeys are replacing codes for sign-in.
How a passkey works
- Registration. The phone or laptop makes a key pair for your domain. The private key stays on the device or in the user’s password manager. Your server stores the public key.
- Sign-in. Your server sends a random challenge. The device asks for the fingerprint or screen lock, signs the challenge with the private key, and your server checks the signature with the public key.
The browser only lets a passkey answer the domain it was made for. A look-alike phishing site gets nothing.
Passkeys vs OTP
| SMS or email OTP | Passkey | |
|---|---|---|
| What the user does | Waits for a code, types it | One touch or glance |
| Can be phished | Yes | No |
| SIM swap risk | Yes for SMS | No |
| Cost per sign-in | Rs 0.025 to Rs 0.25 | Nothing to send |
| Works offline | No | Yes, on the device |
| Needs a new device to be set up | No | Yes, once per device or synced account |
What we saw: a passkey on a look-alike site
“Cannot be phished” is the row in that table that matters most, so we tested it on 14 November 2026 in Chrome 136 with a virtual authenticator (Chrome’s test stand-in for a phone’s fingerprint sensor). Two names, shop.example as the real shop and shop-example.com as the look-alike, were both served from the same Mac.

--host-resolver-rules, and plain http was treated as secure with a Chrome test flag because the test had no certificates.- The look-alike cannot ask for the real site’s passkey. Chrome refused with
SecurityErrorbefore the authenticator was asked anything, so there was no fingerprint prompt for the user to approve by mistake. - Asking under its own name gets nothing either, even with the real credential id copied in:
NotAllowedError, the same answer as “no passkey here”, so the look-alike learns nothing. - The signed answer names the site it was made on.
clientDataJSON.originwashttp://shop.example:8765; your server checks it, so a signature relayed from somewhere else fails there too. - One door Chrome did try: the error says it fetched
/.well-known/webauthnfromshop.example. That file lets a site name other origins allowed to use its passkeys. Only list domains you own in it.
An OTP has no such check. A code typed into shop-example.com works on shop.example if the attacker passes it on within the code’s lifetime.
Where OTP still fits
- Proving a new email or phone number at signup.
- Recovery when someone loses every device.
- Users on old devices without passkey support.
So the usual design is passkeys for sign-in, email OTP for signup and recovery.
Adding passkeys
The browser API is WebAuthn (navigator.credentials.create and .get). The work is on your server: making challenges, storing credentials and checking every response correctly. A minimal flow:
// Browser, with SignOps: your server makes a registration token for the signed-in user,
// and the browser makes the passkey with it
import { passkeys } from "@signops/web";
await passkeys.register({ token: registrationToken });
// Later: sign in, with the passkey offered in the email field (autofill)
const { signops_token } = await passkeys.signIn({ autofill: true });
// your server confirms signops_token before starting a session
On Android, passkeys go through Credential Manager; on iOS through AuthenticationServices. Flutter and React Native packages wrap both. To see what a browser and device support, open the passkey support checker on it.
SignOps Passkeys runs the server side on your own domain, with 1,000 sign-ins a month free and 50,000 on Starter, and email OTP on the same account for recovery.
Sources: passkeys.dev, Android: Credential Manager, W3C: Web Authentication.