Module

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

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
method supabase.GoTrueClient.prototype.getSession
import { supabase } from "https://dotland.deno.dev/x/live@1.63.12/deps.ts";
const { GoTrueClient } = supabase;

Returns the session, refreshing it if necessary. The session returned can be null if the session is not detected which can happen in the event a user is not signed-in or has logged out.

Returns

Promise<{ data: { session: Session; }; error: null; } | { data: { session: null; }; error: AuthError; } | { data: { session: null; }; error: null; }>