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.

Authentication Analytics Whitepaper. Practical guidance, rollout patterns and KPIs for passkey programs.
Two definitions used throughout:
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:
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.
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, 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:
localStorage of the starting pagestate 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.
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 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, 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.
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.
Enterprise mail filters open links to check them. Microsoft documents that
Safe Links 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.
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).
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.
Try passkeys in a live demo.
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:
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.
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.
autocomplete="one-time-code" as defined in the
HTML autofill specification
so the field is recognized. Developers
report cases 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.Three details in the email and the form cut the effort on every platform:
autocomplete="one-time-code", inputmode="numeric" and
maxlength="6", which opens the numeric keyboard and accepts a pasted or autofilled code
in one step.A standard for email code autofill is in the works. The IETF Internet-Draft
draft-goto-otp-token,
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.
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 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:
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:
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.
Email codes and links have no standard of their own, but the NIST rules for out-of-band codes and rate limiting 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) |
Igor Gjorgjioski
Senior Product Lead, VicRoads
We hit 80% mobile passkey activation across 5M+ users without replacing our IDP.
See how VicRoads scaled passkeys to 5M+ users, alongside their existing IDP.
Read the case studyMost teams compare the methods on numbers that are not comparable. Three measurement traps are common.
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 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.
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:
The following funnel shows where each number sits and which one to use as the shared outcome.
"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:
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.
Subscribe to our Passkeys Substack for the latest news.
There is no universal winner. The right method depends on where your users start and what the email step is for.
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.
Changing an email step touches signup, login and support at once. The following timeline shows the six steps of a careful rollout, detailed below.
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 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.
See Subflow Explorer in Corbado Observe →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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Related Articles
Table of Contents