Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

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