Blog ·

Magic links that only work on one device

Someone requests a sign-in link on their laptop, opens the email on their phone, taps the link, and lands on an error. To them, your login is broken.

With Supabase's PKCE flow, which its SSR helpers use by default, the link is tied to a code verifier stored in the browser that asked for it. Opened in a different browser or on another device, the code exchange fails. Separately, some workplace email scanners open links before the person does, which can use up a one-time link.

Test it yourself: request a link on one device and open it on another. If it fails, show a clear "open this on the device you requested it from" message, or offer a one-time code they can type instead.

FlowWatch checks your signup, login and Stripe checkout every day the way a real user does.

Run a free check on FlowWatch