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

x/gotrue/src/index.ts>GoTrueClient#signOut

An isomorphic Javascript library for GoTrue.
Latest
method GoTrueClient.prototype.signOut
Re-export
import { GoTrueClient } from "https://deno.land/x/gotrue@3.0.0/src/index.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; }>