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

x/deco/deps.ts>supabase.createClient

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

Creates a new Supabase Client.

type

<Database = any, SchemaName extends string & keyof Database = "public" extends keyof Database ? "public" : string & keyof Database, Schema extends GenericSchema = Database[SchemaName] extends GenericSchema ? Database[SchemaName] : any>(
supabaseUrl: string,
supabaseKey: string,
options?: SupabaseClientOptions<SchemaName> | undefined,
) => SupabaseClient<Database, SchemaName, Schema>