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

x/deco/deps.ts>supabase.GoTrueAdminApi#listUsers

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.GoTrueAdminApi.prototype.listUsers
Re-export
import { supabase } from "https://deno.land/x/deco@1.35.3/deps.ts";
const { GoTrueAdminApi } = supabase;

Get a list of users.

This function should only be called on a server. Never expose your service_role key in the browser.

Parameters

optional
params: PageParams

An object which supports page and perPage as numbers, to alter the paginated results.

Returns

Promise<{ data: { users: User[]; aud: string; } & Pagination; error: null; } | { data: { users: []; }; error: AuthError; }>