© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
death_wears_bunny_slippers

Issues with Magic Links

Hi, I'm new to Supabase. I'm having the following issues with magic links:

1. Sometimes clicking on the link does not seem to authorize me. It opens my app and the
pages/index.js
pages/index.js
getServerSideProps()
getServerSideProps()
redirects to my signin page. This is intermittent although it seems to be happening more frequently in the last few hours. When this happens, if I wait a minute or two it sometimes just magically redirects to the home page. So perhaps this is a latency issue as far as setting the session on Supabase?
2. After authenticating, calling
req.cookies["sb-access-token"]
req.cookies["sb-access-token"]
in an API route sometimes returns
undefined
undefined
. This too is intermittent. Other times I can see the cookie and it matched what I see in the developer tools.

Has anyone else had a similar issue? Is there anything specific I should try?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Magic Links and OTP
SupabaseSSupabase / help-and-questions
4w ago
Magic Email Links and CDN
SupabaseSSupabase / help-and-questions
4y ago
How to avoid creating a new account with magic links?
SupabaseSSupabase / help-and-questions
4y ago
Email signup with 6-digit OTP verification instead of magic links?
SupabaseSSupabase / help-and-questions
3mo ago