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

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

deco is the edge-native site editor and app framework for building dynamic, high-performance sites with a built-in visual admin UI.
Go to Latest
method supabase.GoTrueClient.prototype.getUser
Re-export
import { supabase } from "https://deno.land/x/deco@1.35.3/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.