Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/live/deps.ts>supabase.GoTrueClient#signOut

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Latest
method supabase.GoTrueClient.prototype.signOut
Re-export
import { supabase } from "https://deno.land/x/live@1.74.1/deps.ts";
const { GoTrueClient } = supabase;

Inside a browser context, signOut() will remove 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 revoke all refresh tokens for a user by passing a user's JWT through to auth.api.signOut(JWT: string). There is no way to revoke a user's access token jwt until it expires. It is recommended to set a shorter expiry on the jwt for this reason.

If using others scope, no SIGNED_OUT event is fired!

Parameters

optional
options: SignOut

Returns

Promise<{ error: AuthError | null; }>