Session from `supabase.auth.exchangeCodeForSession()` not persisting

Hi there! I am using Supabase Oauth with google, redirecting to my callback URL and can see the right session/user following: https://supabase.com/docs/guides/auth/auth-helpers/nextjs#managing-sign-in-with-code-exchange. However, when redirecting to my requestUrl.origin, I try to get the session using supabaseServerClient.auth.getSession(); but receive an empty session.

My email/pwd flow works fine with signInWithPassword. please help thank you
Authentication and Authorization helpers for creating an authenticated Supabase client with the Next.js 13 App Router.
Was this page helpful?