By platform

Supabase magic link not working: causes and fixes

The person pressed the link and was not signed in. Simulated visitors ask for a magic link and open it from a real inbox, so you see where it lands.

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

Why is my Supabase magic link not working?

The usual cause is a redirect address missing from the project's allow list, so the link lands on the Site URL with no sign in. Next: an email scanner that opened the link before the person, a link used on another device than the one that asked, and a link older than its expiry. A simulated visitor requests a magic link, opens the email in its own inbox and shows whether the page signed them in.

What this looks like in a report

Who
Zofia, a freelance translator who wants to try a client portal
How they arrived
Clicked a link in an invitation message
Where they stopped
Home page, after pressing the link in the email

“I asked for the link, pressed it, and the page just showed the sign in box again, as if nothing had happened. I pressed the link again and got an error. I will find another way.”

The fix. Add the exact redirect address to the project's allow list, make the landing page read the sign in from the link before it draws, and show a message with a button to request a new link when the link has expired or was used.

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

The link signs in once, for whoever opens it first

A magic link replaces a password with a promise: press this and you are in. It breaks quietly. The email can arrive late, and a link that has expired gives an error. A security tool can open it first. Someone who asked on a laptop can open it on a phone and sign in there, leaving the laptop waiting. And if your page lands them somewhere that does not read the sign in, they see the home page logged out. The visitor never learns which of these happened.

  • Ask for a link and press it within a minute. Do you land signed in, on the page you expected?
  • Ask on a laptop and open the mail on a phone. Which device is signed in, and does the page say so?
  • Wait past the expiry and press the link. Does the page explain, or show a blank screen?
  • Check the allow list for the address you pass as the redirect. Is it there exactly?
  • Press the same link twice. Does the second press say it was used?

Landing logged out is a redirect problem

When the redirect address is not on the allow list, the link sends the person to the Site URL. The sign in may be dropped or the page may not read it. The tell is a link that opens your site but shows the logged out page, with no error. Compare the address in the browser bar after pressing the link with the address your code asked for. If they differ, check the list, including your preview and www variants.

Used before the person arrived

Mail systems that scan links can use up a one time link. People then report that the link says expired right after they received it. The tell is that it fails for some mailbox providers and not others. A page in between, where the person presses a button to finish, is a common way around it, if your setup allows it. Check with two mailboxes at different providers before you decide.

Different device, different outcome

A person who asks on a laptop and reads mail on a phone signs in on the phone. The laptop tab stays on its waiting message. Say on the waiting screen what will happen and how to continue: open the link on this device, or enter the code if you offer one. Silence here reads as a failure. Offer a code the person can type as a second route if your setup allows it, and show a resend button that explains a short wait.

Test the whole loop

Give visitors a task like signing in with the email address and the link sent to it. Each visitor has a working inbox, so the report shows whether the email arrived, how long the visitor waited and where the link took them, with a screenshot. It cannot see your allow list or logs, so use the failing step to know which to read. A reset has its own causes, covered on a separate page.

Mimiq is independent and not affiliated with the platforms it names. Names belong to their owners.

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 domain or preview can drop the sign in again

Each new domain, preview address or renamed landing page is another address that must be on the allow list. Magic links fail there first and nobody notices. Rerun the same visitors after each change to the auth setup and read who got signed in. Paid credits let visitors use a test account you give them for pages behind the login.

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

Why does the link say expired right after I got it?

Most often a mail system opened it first, or you pressed an older email after asking twice. Only the newest link works. Use the newest email and test with two different mailbox providers.

Does the magic link work on preview deploys?

Only if each preview address is on the redirect allow list or covered by a pattern you added. Otherwise the link sends the person to the Site URL. Add the pattern you really use.

What is the difference from the reset page?

A magic link signs a person in. A reset link lets them set a new password. They share causes, but a reset also needs a page that saves the password. See the separate reset page.

Can the test tell me why a link failed?

No. It shows what a visitor saw and where they stopped. The error itself is in your auth logs and your redirect settings. Read the failing step in the report, then check the redirect list and the logs for that time.

Can visitors sign in with Google?

No. Visitors cannot use Google or another single sign on, and cannot receive text messages. They can use an email address and open the link in their own inbox. Test Google sign in by hand on a real device.

Will the test show how many magic links fail?

No. It does not predict how many real people will see the problem or read your logs. It shows what a few visitors met after pressing the link and where they stopped.

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 .