SupabaseS
Supabase5mo ago
seb1

await client.auth.signOut() hangs and has no error

I have a signout function in an authContext that looks like this:

const supabase = createClient();
const signOut = async () => {
    console.log("signing out");
    const { error } = await supabase.auth.signOut();
    if (error) {
      console.error("Error signing out:", error);
    }
    console.log("signed out");
    await fetch("/api/auth/signout", {
      method: "POST",
    });
  };


The only thing that getes printed out is "signing out", no errors or anything else. Please help!
Was this page helpful?