Skip to main content
Module

x/supabase/mod.ts>GoTrueClient#signOut

An isomorphic Javascript client for Supabase.
Go to Latest
method GoTrueClient.prototype.signOut
Re-export
import { GoTrueClient } from "https://deno.land/x/supabase@1.3.1/mod.ts";

Inside a browser context, signOut() will remove extract the logged in user from the browser session and log them out - removing all items from localstorage and then trigger a "SIGNED_OUT" event.

For server-side management, you can disable sessions by passing a JWT through to auth.api.signOut(JWT: string)

Returns

Promise<{ error: ApiError | null; }>