SupabaseS
Supabase3y ago
Java

getSession() is null after login?

I'm currently trying to get the user in a client component however:

    const session = supabaseClient.auth.getSession().then((data) => {
      console.log(data);
    });

returns
{data: {…}, error: null}
data: {session: null}


All of my other widgets that use the server client is able to get user no problem but for some reason session must not be persisted locally?

When users login from /login it's from a server component.
Was this page helpful?