Module

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

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

Gets the current user details if there is an existing session.

Parameters

optional
jwt: string

Takes in an optional access token jwt. If no jwt is provided, getUser() will attempt to get the jwt from the current session.