Magic link or OTP code?

Both get called passwordless. But they feel very different once real users get hold of them.

A magic link is one tap, nothing to type. Until the user opens their email on their phone and is signing in on their laptop, and the link opens in the wrong browser and signs them in over there. Or a corporate email scanner clicks the link first and burns it before the user ever sees it. Then the user is stuck on 'link expired' and assumes your product is broken.

A code works across devices, because you just read it and type it. But now there's typing, and copy errors, and a code that expired while the user was finding their phone. Autofill helps on mobile and does very little on desktop.

And both lean on the same fragile thing: the email arriving fast. If delivery is slow, neither method is any good, and the user doesn't blame their inbox, they blame you.

There's a security side too. Neither is phishing resistant the way passkeys are, and a code can be phished more easily than a link, since a user can be talked into reading it out.

So I don't think there's a clean winner. It probably depends on where your users sign in from and how they handle email.

Curious what you've seen. Which one do your users actually complete more often, and did that surprise you?

35 views

Add a comment

Replies

Best

I haven't seen completion numbers I'd trust either way, so I'd measure it on your own users. Log failures per method and split the cause: links that were already used by the time the person clicked (corporate mail scanners open them first) versus codes that were wrong or expired. Add delivery time, and how often people start on desktop but open the email on their phone. Put the choice behind a server-side flag and test it. For B2B with corporate inboxes, codes are usually the safer default, and plenty of products simply send both, link and code, in one email.

 The 'split the cause' part is the bit most people skip. A failed login is just one number until you separate scanner-burned links from typos and expired codes, and those need totally different fixes 😅 and sending both in one email feels underrated, it quietly covers most of the edge cases.

we went links first and got burned by exactly the scanner thing, b2b customers w defender/mimecast kept getting "expired". switched to code + link in same mail and support tickets basically stopped. now nudging ppl to add a passkey after first login so they dont need either

 Ha, the defender/mimecast thing is such a classic. Nobody finds out until a b2b customer emails support 😄
Love the passkey nudge after the first login too, that's a good moment since they've just proven they can get in. Do you show it right away or wait for a second visit?

the scanner burning a link before the user sees it is a sneaky failure mode. Faraday, the email app we built, has one-click copy for OTP codes, which takes out the manual typing step on desktop.

 One-click copy is a nice touch, that typing step on desktop is where people lose patience. The other annoying bit for me is the hop between the email tab and the app, so anything that shortens that trip helps a lot.

 yeah the tab hop is the worst part, especially when the code times out while you're switching back. every step you cut there helps