---
url: 'https://www.corbado.com/blog/magic-link-vs-email-otp'
title: 'Magic Link vs Email OTP: Which loses fewer Users'
description: 'Magic link vs email OTP: why email links lose users in in-app browsers and across devices, when a code is the better choice and how to measure both.'
lang: 'en'
author: 'Vincent Delitz'
date: '2026-11-26T10:20:51.818Z'
lastModified: '2026-11-26T11:50:22.348Z'
keywords: 'magic link vs email otp, magic link vs otp, email link vs email code, magic link in-app browser, email otp autofill, email otp security, account activation email'
category: 'Authentication'
---

# Magic Link vs Email OTP: Which loses fewer Users

## Key Facts

- **Email OTP loses fewer users than a magic link** in most consumer logins: a code signs
  the person in where they started, a link wherever the mail app opens it.
- Magic links fail most in **in-app browsers and cross-device reading**, where the link
  opens in a browser with another cookie jar and the session stays behind.
- **Email security scanners** such as Microsoft Defender Safe Links can open links before
  the user does, so a link must redeem its token only after a button press (POST).
- Neither method is **phishing-resistant**: NIST SP 800-63B-4 excludes email from
  out-of-band authentication, so offer a passkey right after the email step.
- Compare both methods on **signed in within 24 hours by any route**, because link opens
  are undercounted and email opens are overcounted.

## 1. Introduction

Almost every consumer login still has an email step somewhere: account activation,
passwordless login, password reset or a fallback when a passkey is not available. Teams
usually decide **magic link vs email OTP** once early on and rarely revisit the choice.
The choice matters more than it looks, because the two methods send the user to different
places.

Two definitions used throughout:

- **Magic link:** an email containing a URL with a single-use token. Opening the URL signs
  the person in, without a password or a code.
- **Email OTP (email one-time code):** an email containing a short code, usually six digits,
  that the person types or autofills into the page that requested it.

In short, a link signs the person in **wherever the email is opened**. A code signs the person in
**where they started**. On a desktop browser with webmail in the next tab, that difference
is invisible. On a phone, inside the in-app browser of a social app or when someone shops
on a laptop and reads email on the phone, it decides whether the login ends in a signed-in
user or in a tab that still says "Check your email".

This article covers:

- Where magic links lose users, especially on phones, in in-app browsers and across devices
- How email codes behave on iOS, Android and desktop, including autofill
- Why the usual "link open rate" understates link performance and how to compare both
  methods on a fair metric
- A decision guide for activation, passwordless login and recovery

## 2. Why do Magic Links lose Users?

A magic link is a URL with a single-use token. The mail client decides which browser opens
it, and that is the root of most problems. The following diagram shows how the two methods
differ in where the person ends up.

Five situations produce most of the loss.

### 2.1 Login started inside an In-App Browser

Much consumer traffic can arrive from social and search apps. When a person taps
an ad or a post in Instagram, TikTok, Snapchat or the Google app, your login page opens in
that app's [in-app browser](https://www.corbado.com/blog/passkeys-in-app-browsers), an embedded WebView with its
own cookie jar. The person enters an email, switches to the mail app and taps the link. The
link opens in Safari, Chrome or the mail app's own browser. None of them shares cookies with
the WebView.

What stays behind:

- The session cookie and anything in `localStorage` of the starting page
- The basket, the checkout step or the product page the person wanted to reach
- Session-bound login state, for example a PKCE verifier or an OAuth `state` value that the
  token exchange needs. Some identity platforms require the link to open in the browser
  that requested it and show an error otherwise.

In the best case the person is signed in somewhere else and has to find their way back. In
the worst case the new browser shows an error and the starting tab waits for a click that
already happened. Some users do not return to the social app at all, so the drop shows up as
"link never opened" in your data even when it was opened.

### 2.2 Same Phone, different Cookie Jar

A link can lose the session even when the person never leaves the phone or the browser
they started in. What matters is **which browser engine the mail app hands the link to**
and whether it shares cookies with the browser where the login started:

| Mail app opens the link in | Shares cookies with the starting browser? |
|---|---|
| The system default browser (Apple Mail on iOS, most desktop mail clients) | Yes, if the login started in that same default browser |
| An embedded Safari view inside a third-party iOS mail app (`SFSafariViewController`) | No: since iOS 11 it [keeps website data per app](https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller) and no longer shares cookies with Safari |
| A Chrome Custom Tab on Android | Yes with Chrome: Custom Tabs [use the same browser state as the Chrome app](https://chromium.googlesource.com/chromium/src/+/main/docs/security/custom-tabs-faq.md), unless the app opens an ephemeral tab |
| An Android `WebView` inside the mail app | No: each app's WebView keeps its own cookie store |
| Any browser, when the login started in a social app's in-app browser | No (section 2.1) |

This explains why the same flow can perform very differently on iPhone and Android, and
why "phone users" is too coarse a segment. A code is not affected by any of these rows,
because it is typed back into the page that holds the session.

### 2.3 Started on the Laptop, Email read on the Phone

Cross-device reading is common, especially for infrequent users. Someone starts a booking,
an application form or a checkout on a laptop, gets the email notification on the phone and
taps the link there. Now the phone is signed in and the laptop, where the half-finished task
is, still waits. A code solves this case
by design: six digits can be read on one device and typed on another.

### 2.4 Email Security Scanners consume the Token

Enterprise mail filters open links to check them. Microsoft documents that
[Safe Links](https://learn.microsoft.com/en-us/defender-office-365/safe-links-about) scans
URLs before delivery, can hold messages "until scanning is finished" and detonates URLs
without a valid reputation "asynchronously in the background". If your link redeems its token on the first `GET` request, the scanner
can use it before the person taps it. The person then sees "link expired" on a link they
never used.

The fix is cheap: the link opens a landing page with a button, and only the button's `POST`
redeems the token. The sequence below shows both variants.

```mermaid
sequenceDiagram
    participant S as Your server
    participant F as Mail filter / scanner
    participant U as User in mail app
    S->>F: Email with link /verify?token=abc
    F->>S: GET /verify?token=abc (scan)
    Note over S: Unsafe variant: GET redeems token
    U->>S: GET /verify?token=abc (real tap)
    S-->>U: "Link expired"
    Note over S: Safe variant: GET only renders a page
    U->>S: GET /verify?token=abc
    S-->>U: Page with "Sign in" button
    U->>S: POST /verify (button press)
    S-->>U: Signed in
```

This matters for B2B tools and for consumer services whose users read email on corporate
devices. Scanners can also follow the tracking redirects that email service providers wrap
around links, so click rates from those tools can include machine clicks (section 5.1).

### 2.5 Expiry, Resends and old Emails

Links expire, people request a second email and tap the first one. Long threads hide the
newest message. Codes share the expiry problem, but a mistyped or expired code fails on the
page the person is looking at, with a clear "send a new code" next to it. A failed link
fails in a new tab, away from the original context.

## 3. Requested and unrequested Emails behave differently

A second effect is easy to miss when you compare email steps across journeys. Emails that
the person **asked for** tend to be opened more often and faster than emails the system
**sends on its own initiative**. Check this in your own data before you blame the method.
The following comparison shows why the same email step behaves differently in a reset and
in an activation flow.

Password reset is the clean example of a requested email: the person tapped "Forgot
password" and is waiting for it. Account activation is often the opposite. Retailers, travel
brands, publishers and loyalty programs hold large numbers of **accounts without a
password**, created through a newsletter signup, a guest booking, a loyalty card at the
counter or an import from a partner. When such a person
types their email at login, the site sends an activation link instead of asking for a
password. The person did not expect an email, may not recognize why it arrived and often
closes the tab.

If a requested email (reset) and an unrequested one (activation) on the same site show a
clear gap in open rate and time-to-open, the likely cause is expectation. That has two
consequences:

- **Tell the person exactly what happens before you send anything:** "You created an
  account with this email at sign-up for our newsletter. We will send you a 6-digit code to
  finish setting it up." This turns an unrequested email into a requested one.
- **Compare like with like:** benchmarks from a signup flow, where the person just typed
  their email on purpose, are closer to a reset than to an unprompted activation. Use your
  own reset flow as the internal reference when you estimate what a better activation flow
  can reach.

## 4. Magic Link vs Email OTP: what changes for the User?

Both methods depend on the inbox. The difference is what the person has to do with the email
and where they end up afterwards.

| | Email link | Email code |
|---|---|---|
| Where the person ends up | Signed in wherever the email was opened | Signed in on the starting page, basket and checkout intact |
| Email read on another device | The login moves to that device | Read on the phone, type on the laptop |
| Login inside an in-app browser | Link opens in another browser, starting page left behind | Person stays in place and types the code |
| Effort | Leave the page, open the mail app, find the email, tap | Varies by device (section 4.1), from one tap to switching apps and typing |
| Typical failures | Email not opened, opened in the wrong place, token consumed or expired | Email not opened, code expired, page reloaded while away |
| Failure surface | New tab, away from the original context | Same page, with a resend option next to the field |

Split code failures into "sent, never entered" and "entered wrong or expired". If most of
the loss is in the first group, the inbox step dominates both methods and the code simply
removes the browser and device switch that comes on top for links.

### 4.1 How the Code gets from the Inbox to the Page

A link needs no typing on any device. A code does, unless the platform fills it in, so how
it travels from the inbox to the input field depends on the platform. The following overview
shows the path on each platform.

- **iPhone and Mac with Apple Mail:** since iOS 17 and macOS Sonoma, codes that arrive in
  Apple Mail can be autofilled in Safari the same way as SMS codes, and the email can be
  [deleted automatically after use](https://www.macrumors.com/how-to/auto-delete-verification-codes-messages-mail-ios/).
  Mark the input with
  `autocomplete="one-time-code"` as defined in the
  [HTML autofill specification](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill)
  so the field is recognized. Developers
  [report cases](https://developer.apple.com/forums/thread/738690) where the suggestion
  does not appear for their emails, possibly related to the sender domain vs the site domain,
  so test it with your real
  sender and domain before you count on it.
- **Android:** there is no system feature that moves codes from email into a web page. The
  [WebOTP API](https://developer.chrome.com/docs/identity/web-apis/web-otp) works for SMS
  only. People switch to the mail app or the notification, copy or memorize the code and come
  back. Some keyboards suggest a recently copied code, which helps a little.
- **Desktop:** codes are mostly typed or pasted from a webmail tab or read from the phone.
  The inbox is often one tab away, which keeps the effort low.

Three details in the email and the form cut the effort on every platform:

- **Put the code in the subject line or the first line of the email,** so it shows in the
  notification preview and the person can read it without opening the mail app. Weigh this
  against the code being visible on a locked screen.
- **Use one input field, not six boxes.** MDN's
  [one-time password guide](https://developer.mozilla.org/en-US/docs/Web/Security/Authentication/OTP)
  shows a single field with `autocomplete="one-time-code"`, `inputmode="numeric"` and
  `maxlength="6"`, which opens the numeric keyboard and accepts a pasted or autofilled code
  in one step.
- **Keep the email free of marketing content,** so the code is the first thing the person
  sees and mail filters treat the message as transactional.

A standard for email code autofill is in the works. The IETF Internet-Draft
[draft-goto-otp-token](https://www.ietf.org/archive/id/draft-goto-otp-token-01.html),
published in September 2026 by two Google authors, defines an `OTP-Token` email header such
as `OTP-Token: "123456"; origin="https://example.com"`. Software could then read the code
without parsing the body and offer it only on the matching origin, as origin-bound SMS codes
already allow. The draft is early: several sections are still marked TODO and it names no
mail client or browser that supports it. At least one authentication platform started
adding the header to its email codes in November 2026 and calls client support "early".
Adding the header costs little, but do not plan around it yet.

Treat autofill as a speed gain. It helps people who read email in Apple Mail, which is only
part of the iPhone base. The case for the code rests on keeping the person on the starting
page and on device independence.

Report iPhone, Android and desktop separately in either case. Platforms can differ noticeably
for the same flow, and without the split a change in device mix looks like a change in
your flow.

### 4.2 Is a Magic Link or an Email OTP more secure?

Email links and email codes both prove access to a mailbox, nothing more. MDN rates the code
as the more secure of the two, because asking users to click links in emails "makes them
more vulnerable to phishing attacks". The code has its own weakness: NIST's
[SP 800-63B-4](https://pages.nist.gov/800-63-4/sp800-63b.html) states that "OTP
authentication is not phishing-resistant", because a manually entered code is not bound to
the session and a fake page can relay it in real time. A link, in turn, can be forwarded.

NIST goes further and states that "email SHALL NOT be used for out-of-band authentication",
while it notes that confirmation codes "sent to validate email addresses or are issued as
recovery codes" are not authentication in that sense.

For consumer services the practical reading is:

- Email codes and links are fine to **verify an address, activate an account and recover
  access**.
- As the **only** login factor they are a convenience method with known weaknesses, the same
  class of risk discussed in [passkeys vs SMS OTP](https://www.corbado.com/blog/passkeys-vs-sms-otp).
- Whichever you choose, **offer a passkey right after** the email step succeeds, so the
  email method becomes the fallback and not the daily path. See
  [how to move password users to passkeys](https://www.corbado.com/blog/how-to-transition-existing-password-based-users-to-passkeys).

One design to avoid: a "cross-device link" that, when tapped on the phone, signs in the
**waiting laptop session**. It fixes the device switch but lets an attacker start a login on
their own machine, get a victim to tap the link and receive the session:

```mermaid
sequenceDiagram
    participant A as Attacker's browser
    participant S as Your server
    participant V as Victim's mail app
    A->>S: Start login with victim's email
    S->>V: Email: "Tap to sign in"
    Note over V: Victim taps, expecting<br/>their own login
    V->>S: GET /approve?token=...
    S-->>A: Waiting session is signed in
```

If you build it, show the requesting device, location and time on the landing page and
require an explicit confirmation. A code typed into the starting page avoids the problem.

### 4.3 Which Code and Link Settings hold up?

Email codes and links have no standard of their own, but the NIST rules for
[out-of-band codes and rate limiting](https://pages.nist.gov/800-63-4/sp800-63b/authenticators/)
are a useful reference even though NIST excludes email from that category:

| Setting | Reference value | Practical note |
|---|---|---|
| Code length | At least six decimal digits (NIST, out-of-band secrets) | Six digits fit one notification line and one autofill suggestion |
| Lifetime | Invalid unless used within 10 minutes (NIST); "ideally ≤5 minutes" (MDN) | Too short a lifetime shows up as resends from people switching apps |
| Failed attempts | No more than 100 consecutive failures per account (NIST upper bound) | A new code must not reset the failure counter, as NIST also requires |
| Reuse | Single use for codes and links | A second tap on a used link should explain what to do next, not show a bare error |
| Link redemption | Only on a user action (`POST`) | Protects against scanners (section 2.4) |

## 5. How to measure Magic Link vs Email OTP fairly

Most teams compare the methods on numbers that are not comparable. Three measurement traps
are common.

### 5.1 Link Opens are a lower Bound, Email Opens an upper Bound

Client-side analytics only see a link open if the browser that opens it runs your tracking.
In regions where analytics need consent, the browser that opens the link often has no consent
yet, especially when it is a browser the person rarely uses for your site. That open is
invisible. Server-side token redemption logs see it, but they do not know which browser or
segment the flow started in.

So the client-side link-open rate is a **floor**. In-app browser segments are hit hardest,
because almost every in-app link is opened in a different browser. Part of the gap between
in-app and normal browsers is real abandonment and part is measurement. You cannot split
the two without joining client-side and server-side data on a flow identifier carried in the
link.

The email service provider's numbers err in the other direction. Apple's
[Mail Privacy Protection](https://www.apple.com/legal/privacy/data/en/mail-privacy-protection/)
downloads remote content, including tracking pixels, in the background whether or not the
person opens the email, so Apple Mail users can show up as "opened" without having read
anything. Scanners that follow links (section 2.4) add machine clicks. Use email opens and
clicks to spot delivery problems, never as the comparison metric.

### 5.2 Count per Email, per Attempt and per Person

People request a second email and open both. Others give up and use social login instead. Decide
which unit each number uses and keep it fixed:

- **Per email sent:** good for delivery and open diagnostics
- **Per attempt:** one activation or login attempt, however many emails it triggered
- **Per starting browser or person over a window:** good for the outcome

The following funnel shows where each number sits and which one to use as the shared
outcome.

### 5.3 Use one Outcome both Methods share

"Link opened" and "code entered" are not the same event, so do not compare them directly.
The fair comparison is **the share of starting browsers that end up signed in within a fixed
window, for example 24 hours, by any route**. It asks the same question of both flows: did
the person get in? It also captures people who give up on the email and come back through
social login or a password reset, which a per-step funnel hides.

Track these splits from the first day:

- In-app browser vs normal browser, with the host app where your user-agent parsing allows it
- Links opened in another browser or on another device than the one that started the flow
- iPhone, Android and desktop
- Requested (login, reset) vs unrequested (activation) emails

Generic product analytics usually cannot produce these numbers, because they do not know
which browser started a flow that finished elsewhere. The limits are described in
[why GA4 cannot debug login failures](https://www.corbado.com/blog/why-ga4-cannot-debug-login-failures).

## 6. When to use a Magic Link and when an Email OTP

There is no universal winner. The right method depends on where your users start and what
the email step is for.

```mermaid
flowchart TD
    A[Email step needed] --> B{Is a meaningful share<br/>of traffic from in-app<br/>browsers or cross-device?}
    B -- Yes --> C[Lead with an email code]
    B -- No, mostly desktop<br/>same browser --> D{Does the flow depend on<br/>state in the starting tab?<br/>basket, checkout, OAuth state}
    D -- Yes --> C
    D -- No --> E[Link is acceptable]
    C --> F[Optional: include a link in the<br/>same email for desktop readers]
    E --> G[Make the link scanner-safe:<br/>redeem token only on POST]
    F --> H[Offer a passkey right after<br/>the email step succeeds]
    G --> H
```

Typical choices by journey:

| Journey | Recommended default | Why |
|---|---|---|
| Activating accounts without a password (newsletter, guest booking, loyalty) | Code, with a clear explanation before sending | Unrequested email, often a high mobile and in-app share, a task waiting in the starting tab |
| Passwordless login for consumers | Code | Keeps checkout context, works across devices |
| Password reset | Code or link | Requested email, the person waits for it; a link works if the reset page does not depend on the starting tab |
| Email verification after signup in a native app | Code, or link via universal links / app links | The link must open the app, not a browser |
| B2B tools used on corporate mail | Code, or scanner-safe link | Mail filters open links before users do |

Sending **both** a code and a link in the same email is a reasonable middle ground: people
reading on the same desktop click, people on another device type the code. Keep the code
prominent at the top of the email and make the link scanner-safe.

### 6.1 Rolling out the Switch

Changing an email step touches signup, login and support at once. The following timeline
shows the six steps of a careful rollout, detailed below.

1. **Check delivery first:** both methods fail when the email lands in spam or arrives late,
   and a code expires while it waits. Google's
   [email sender guidelines](https://support.google.com/a/answer/81126) require SPF or DKIM
   for all senders and SPF, DKIM and DMARC above 5,000 messages per day to Gmail accounts.
   Send login emails from a dedicated transactional stream, separate from newsletters.
2. **Set a baseline period** with normal volume, using the shared outcome from section 5.3,
   and note any campaigns that spike email volume.
3. **Test inside the in-app browsers that matter to you** (for example TikTok, Snapchat,
   LinkedIn and the Google app) on iOS and Android before launch. Check that the code field
   keeps focus, that the page survives a switch to the mail app and back and that a reload
   does not lose the pending flow.
4. **Launch for a share of traffic or one region** first and compare the 24-hour signed-in
   share against the baseline, split by platform and in-app vs normal browser.
5. **Watch resend and expiry rates** in the first days. A high resend rate points to
   delivery problems or a code lifetime that is too short for app switching.
6. **Keep the passkey prompt** right after the email step and track its completion
   separately, so the email change does not hide a change in passkey enrollment.

## 7. How Corbado can help

The hard part of this decision is seeing what happens on the client side of the email step,
which server logs and generic analytics miss. [Corbado Observe](https://www.corbado.com/observe) records the client
side of each login, so the email code step and the steps after any email become measurable before and
after you change it.

[Video: Subflow explorer](https://www.corbado.com/videos/features/subflow-explorer.mp4) ([See Subflow Explorer in Corbado Observe](https://www.corbado.com/observe/subflow-explorer))

- **Subflow Explorer:** email OTP is tracked as its own subflow next to SMS OTP, so
  you see how many codes are sent and never entered and how long people take to come back
  with the code.
- **In-app browser segments:** the Method Uplift in-app-browser preset covers the
  Facebook, Instagram and Google WebViews on iOS and Android, and Passkey Errors names these
  host apps from the user agent, so in-app traffic is visible as its own group.
- **Funnels:** the login and signup funnels show whether the steps after the email hold up,
  so you know if the loss is at the inbox or later.
- **Experiments:** Observe reads variants you tag with the `experiment_` prefix, so a
  code-vs-link test you run shows up on the same KPIs.

Observe sits on top of your existing login and identity provider, so you can measure the
current email step before you change it.

## 8. Conclusion

The choice between a magic link and an email code is mostly a choice about **where the
person ends up**. A link signs them in wherever the mail app opens it, which on phones,
inside social apps and across devices is often not where they started. A code brings them
back to the starting page with their task and context intact.

For consumer journeys with meaningful mobile, in-app or cross-device traffic, lead with a
code, explain the email before you send it and offer a passkey right after. Keep links where
users read email and browse in the same desktop browser, and make them scanner-safe. Measure
both on one shared outcome, signed in within 24 hours, and treat link-open rates as the lower
bound they are.

## Frequently Asked Questions

### Is a magic link or an email OTP better for login conversion?

For most consumer logins an email code loses fewer users, because the person stays on the
page where they started and can read the code on any device. A magic link signs the person
in wherever the email is opened, which is often a different browser or device. Links still
work well when users read email and browse in the same desktop browser and when the flow
does not depend on state in the starting tab.

### Why do magic links fail in in-app browsers?

When a login starts inside the in-app browser of Instagram, TikTok or Snapchat, the email
link later opens in Safari, Chrome or the mail app's own browser. That browser has a
separate cookie jar, so the session, the basket and any session-bound login state stay
behind. The starting tab keeps showing "Check your email" and the user often gives up.

### Can email security scanners break magic links?

Yes. Enterprise mail filters such as Microsoft Defender Safe Links scan URLs before delivery
and can open unknown links in the background. If a magic link is single-use and consumed on
the first `GET` request, the scanner can burn it before the user taps it. Require a user
action (a button that sends a `POST`) on the landing page before the token is redeemed.

### Are email OTPs allowed under NIST SP 800-63B-4?

NIST SP 800-63B-4 states that email shall not be used for out-of-band authentication.
Confirmation codes that validate an email address or serve as recovery codes are explicitly
not authentication in that sense. For consumer sites, email codes and links remain common
for verification and recovery, but neither is phishing-resistant, so a passkey should follow.

### How do I measure magic link performance correctly?

Compare both methods on one outcome they share: the share of starting browsers that end up
signed in within 24 hours, by any route. Split it by the browser the flow started in (in-app
vs normal browser), by platform and by whether the link was opened in another browser or
device. Treat the link-open rate as a lower bound, because opens in a browser without
analytics consent are invisible.

### Is an email OTP more secure than a magic link?

Slightly, but neither is phishing-resistant. MDN describes typing a code as more secure than
an email link, because asking users to click links in emails makes them more vulnerable to
phishing. NIST SP 800-63B-4 states that OTP authentication is not phishing-resistant,
because a typed code is not bound to the session and a fake site can relay it. Use either as
a fallback and offer a passkey afterwards.

### How long should an email OTP or magic link stay valid?

About 10 minutes is a defensible default. NIST SP 800-63B-4 treats an out-of-band code as
invalid unless used within 10 minutes and requires at least six decimal digits. MDN suggests
5 minutes or less. Shorter lifetimes raise resend rates when people switch to the mail app,
so check the resend rate after any change. Limit failed attempts per account and make every
code and link single-use.

### Can email OTP codes be autofilled like SMS codes?

Partly. Since iOS 17 and macOS Sonoma, Safari can autofill codes that arrive in Apple Mail
when the input uses `autocomplete="one-time-code"`. Android has no system feature for email
codes, and the WebOTP API works for SMS only. The IETF draft draft-goto-otp-token proposes an
`OTP-Token` email header that binds a code to an origin, but no mail client has announced
support yet.

### Should I send both a code and a link in the same email?

Yes, when your users mix desktop and mobile. People who read the email in the same desktop
browser click the link, people on another device or in an in-app browser type the code. Put
the code at the top of the email, make the link redeem its token only after a button press
and treat both as one login attempt in your analytics.
