What breaks

Magic link not working: find which step breaks

The user taps the link in the email and lands on a page that says the link is invalid, or lands back on the sign-in screen as if nothing happened.

5 visitors try to .
First test free with an accountRun it from your coding agent

Why is my magic link not working?

A magic link usually fails for one of three reasons: an email security scanner opened the link first and used it up, the user opened it in a different browser from the one that asked for it, or the link expired before it was tapped. Compare the time the email was sent with the time the link was first opened, and check whether the link opened in the same browser that requested it. A simulated visitor with a working inbox requests a login, clicks the link, and the report shows which of those steps stopped it.

What this looks like in a report

Who
Ruairi, a freelance editor who logs in to a client portal twice a month
How they arrived
Opened a sign-in email on his phone after a long day
Where they stopped
Email link, after tapping Sign in

“I asked for the link on my laptop, then opened the email on my phone. It said the link was invalid. I requested another one and got the same message, so I stopped trying.”

The fix. Show a clear message when the link opens in a different browser, with a one-tap way to request a code for that device. Let the link wait for a click on a confirm page, so a mail scanner cannot use it up.

An illustration. Run a test to see your own.See a real sample report

The link is single use, and something else may have used it first

A magic link is a single-use token that the server exchanges for a session. The exchange works only once, and it often works only in the browser that asked for the link. Corporate mail systems open every link in a message to scan it, which spends the token before the person sees the email. A phone mail app can open the link in its own viewer, which has no session. A link that waits in an inbox for an hour can expire. The person taps it, sees the words invalid or expired, and asks for another one that a scanner will also use up.

  • Request a link, then open it in the same browser within a minute. Does the login complete?
  • Open the same link a second time. Does it say already used, which means the first open spent it?
  • Request a link on a laptop and open it on a phone. Does the page then ask you to start again?
  • Wait past the expiry time you set, then open the link. Does the page explain why it failed?
  • Look for a sign-in screen that loops back after the link, which points to a cookie problem.

The mail scanner that opens the link before the person does

Many corporate and consumer mail systems fetch every link in an incoming message to check it for threats. The fetch is a normal web request, and if your login link performs the login on the first request, the scanner completes it. The person then opens the email later and finds a link that is already used. The tell is timing: the link was opened within a few seconds of arriving, and the browser that opened it was not one the person uses. The fix is to make the link land on a page that asks for a button press before it exchanges the token. A scanner will not press the button, and the person will.

A link opened in another browser has no session to return to

Many magic link setups store a small value in the browser that asked for the login, and check it when the link is opened. Open the link on a phone while the request came from a laptop, and the check fails, even though the token is valid. Phone mail apps add their own viewer, which keeps no cookies from the laptop's session. The page then says the link is invalid, and the person sees no hint about the real reason. Test the link in the browser that made the request, then in another. If only the second fails, the session check is the cause.

Expiry and resending cancel links people are still holding

A short expiry means a link left in an inbox for an hour is dead when it is opened. Resending makes it worse. Many apps cancel every earlier link when a new one is sent, so a person who asks twice and taps the first email finds it no longer works. Check the expiry you set and whether a second request invalidates the first link. Then make the sign-in screen say which link is the current one, and how long it lasts, before the person leaves the page.

Tell the causes apart with a simulated login

A simulated visitor is given a test account and a working inbox, then asked to log in with a magic link. The report shows the request step, the time the email arrived, and the step where the link was opened. If the link works in the same browser and fails in a second one, the session check is the cause. If the login completes, then the visitor is sent back to the sign-in screen, the cookie or redirect after login is the cause. If the link fails before the visitor clicks, the email is being scanned or has expired.

What you get with Mimiq

  1. 01

    Run it by hand, or on every pull request

    Paste a link and a task in the app and watch the visitors work. Or run them on every preview deploy: the GitHub Action comments on the pull request, any other CI can call the MCP endpoint, and your coding agent can run it too.

  2. 02

    Bugs and usability problems in one report

    The browser records errors and failed or slow requests on the step they happened. The visitors say where the wording or the steps confused them, and where they left.

  3. 03

    Visitors that behave like your audience

    Each visitor is a different profile with a reason to be there, matched to who the page is for, described by you, or built from your own customers.

  4. 04

    A prompt to fix each problem

    Every problem comes with a fix to paste into Cursor, Claude Code, Lovable or any coding agent, and one prompt hands over the top problems at once. Then send the same visitors through again.

  5. 05

    Follow every visitor

    See each visitor's whole path, step by step with screenshots, and what it was thinking at every step. Ask any visitor a question.

The browser records relevant JavaScript errors and failed or slow app requests encountered during the run, attached to the step where they occurred. The visitors are simulated: they find problems, they do not predict how many real people will convert.

A new mail scanner or cookie rule can break magic links again

Magic links break when a mail provider starts scanning links more aggressively, a browser tightens its cookie rules or the sign-in domain changes. The login form keeps working for you and fails for a share of users. Rerun the same login from a laptop, then from a phone, after each change, and read the step where the link stopped. With paid credits, visitors can also use a test account you give them.

Starter

Try it on one launch

$9 once
120 credits, never expire

24 visitors, about 4 tests of 5

  • Visitors on your landing page, signup and checkout
  • Where they left and why, with a fix to copy for each problem
  • Run it in the app or on every pull request
  • Ask any visitor a question, included
  • Test accounts and protected previews
Buy 120 credits

Builder

Test every build

$19 a month
500 credits every month

100 visitors, about 20 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Cancel anytime
Choose Builder

Pro

Test every release, as a team

$49 a month
1,500 credits every month

300 visitors, about 60 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Cancel anytime
Choose Pro

Scale

Test at scale, every day

$149 a month
6,000 credits every month

1,200 visitors, about 240 tests of 5

  • Everything in Starter
  • Credits refill each month, and what is left rolls over once
  • Priority support
  • Cancel anytime
Choose Scale
$0for your first test, with a free account (Google or email, no card). It includes 50 credits, enough for 10 visitors. After that a visitor uses 5 credits, and packs start at $9 for 120 credits.
See a sample report

Questions

Can I just make the link last longer?

A longer expiry helps people who read the email late, but it does not fix a scanner that spends the link or a browser that cannot find the session. Change the expiry only after you know which of those causes you have, and keep the expiry short enough that an old link is not a risk.

Can a simulated visitor tell me how many of my users will hit this?

No. It does not give rates, and it cannot tell you how often a mail scanner will touch your links for real customers. It shows where a visitor stopped, with the time and the browser, so you can find the cause. Get the rate from your own login logs.

Is a code a better option than a link?

A one-time code typed on the same device avoids the scanner and the cross-browser problem, but it adds a step and needs the code to arrive quickly. Many apps offer both, with the code as the fallback when the link fails. Test both paths, not only the one you prefer.

Why does it work for me and not for a customer?

You probably use one browser and one mail app. Customers use corporate mail, phone viewers and private windows. Test from a phone and a laptop, and from a second mail provider, before you decide the link is fine.

Keep reading

Send visitors and see what breaks first.

Your first test is free: sign in with Google or email and it starts right away. Last checked 2026-12-03.

5 visitors try to .