© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•7mo ago•
24 replies
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",
    });
  };
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!
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

client.auth.signInWithPassword() and client.auth.signOut() ERRORS
SupabaseSSupabase / help-and-questions
4y ago
getSession hangs [javascript client library]
SupabaseSSupabase / help-and-questions
3mo ago
auth.signOut does not nullify the user object
SupabaseSSupabase / help-and-questions
4y ago
Application error: a client-side exception has occurred
SupabaseSSupabase / help-and-questions
3y ago