SupabaseS
Supabase12mo ago
hova

20 second call to supabase.auth.getUser()

I'm working on a minimal Supabase Auth demo app with NextJS
NextJS is hosted by Vercel and Supabase is Supabase's free tier

I've followed the tutorial in the docs and have a basic flow working for anonymous users.

I'm noticing that any time I call supabase.auth.getUser() there's a decent chance the request is going to freeze for exactly... roughly.... 20 seconds

Is this known behavior?
Is this fixable via code or paying for a better tier?
Anyway, the core flow is working, and I'm pretty happy with the UX but the 20s latency is nearly a dealbreaker

Live site is here: https://nextjs-supabase-auth-from-scratch.vercel.app/
Was this page helpful?