Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SupabaseClientOptions

import type { SupabaseClientOptions } from "https://esm.sh/@supabase/supabase-js@2.89.0/dist/index.d.mts";
type SupabaseClientOptions<SchemaName> = {
db?: {
schema?: SchemaName;
}
;
auth?: {
autoRefreshToken?: boolean;
storageKey?: string;
persistSession?: boolean;
detectSessionInUrl?: boolean | ((url: URL, params: {
[parameter: string]: string;
}
) => boolean
)
;
storage?: SupabaseAuthClientOptions["storage"];
userStorage?: SupabaseAuthClientOptions["userStorage"];
flowType?: SupabaseAuthClientOptions["flowType"];
debug?: SupabaseAuthClientOptions["debug"];
lock?: SupabaseAuthClientOptions["lock"];
throwOnError?: SupabaseAuthClientOptions["throwOnError"];
}
;
global?: {
fetch?: Fetch;
headers?: Record<string, string>;
}
;
accessToken?: () => Promise<string | null>;
}
;

§Type Parameters

§
SchemaName
[src]

§Type

§
{
db?: {
schema?: SchemaName;
}
;
auth?: {
autoRefreshToken?: boolean;
storageKey?: string;
persistSession?: boolean;
detectSessionInUrl?: boolean | ((url: URL, params: {
[parameter: string]: string;
}
) => boolean
)
;
storage?: SupabaseAuthClientOptions["storage"];
userStorage?: SupabaseAuthClientOptions["userStorage"];
flowType?: SupabaseAuthClientOptions["flowType"];
debug?: SupabaseAuthClientOptions["debug"];
lock?: SupabaseAuthClientOptions["lock"];
throwOnError?: SupabaseAuthClientOptions["throwOnError"];
}
;
global?: {
fetch?: Fetch;
headers?: Record<string, string>;
}
;
accessToken?: () => Promise<string | null>;
}
[src]