Subject: Next.js 15 + Supabase auth timing out after page refresh
mihalismacura7-blip
HOBBYOP

18 days ago

Hi there! Having an issue with Next.js 15 + Supabase auth after recent Railway update. Project ID: ac070c87-eeaf-4693-b920-95925730dd8a ISSUE: - Auth works perfectly on first load - After page refresh → supabase.auth.getUser() hangs for 10s then times out - Same code works fine on localhost SETUP: - Next.js 15.0.3 - @supabase/supabase-js 2.76.1 - Region: EU West - Started happening Nov 17-18 TESTED: -Network connectivity is fine (can reach Supabase) -Env vars are set correctly -Tried hardcoded credentials - same issue -No network restrictions configured The Supabase client seems to hang during session restoration from localStorage - no API calls are even made during the timeout. Works on initial load because session is in memory, but refresh requires reading from localStorage and that's where it hangs. Any assistance would be appreciated!

$10 Bounty

2 Replies

mihalismacura7-blip
HOBBYOP

18 days ago

Next.js 15 + Supabase auth timing out after page refresh


mihalismacura7-blip
HOBBYOP

18 days ago

I would really appreciate if someone can help me out!


Status changed to Open brody 18 days ago


sysaeon
HOBBY

13 days ago

That sounds like this Supabase issue:

https://github.com/supabase/supabase-js/issues/1594

I haven't encountered it myself, but there are some workarounds mentioned in there.


Loading...