supakit
Version:
A Supabase auth helper for SvelteKit. Relies on browser cookies.
4 lines (3 loc) • 589 B
TypeScript
import { SupabaseClient } from '@supabase/supabase-js';
import type { SupabaseClientOptionsWithoutAuth } from '../types/index.js';
export declare const createBrowserClient: <Database = any, SchemaName extends string & keyof Database = "public" extends keyof Database ? "public" : string & keyof Database>(supabaseUrl: string, supabaseKey: string, options?: SupabaseClientOptionsWithoutAuth<SchemaName> | undefined) => SupabaseClient<Database, SchemaName, Database[SchemaName] extends import("@supabase/supabase-js/dist/module/lib/types.js").GenericSchema ? Database[SchemaName] : any>;