Function createSupabaseServerClient
- createSupabaseServerClient<Database, SchemaName, Schema>(__namedParameters): SupabaseClient<Database, SchemaName, Schema>
-
Type Parameters
-
Database = any
-
SchemaName extends string = "public" extends keyof Database
? "public"
: string & keyof Database
-
Schema extends GenericSchema = Database[SchemaName] extends GenericSchema
? any[any]
: any
Parameters
-
__namedParameters: {
cookieOptions?: CookieOptionsWithName;
event: Pick<RequestEvent<Partial<Record<string, string>>, null | string>, "cookies">;
expiryMargin?: number;
options?: SupabaseClientOptionsWithoutAuth<SchemaName>;
supabaseKey: string;
supabaseUrl: string;
}
-
Optional
cookieOptions?: CookieOptionsWithName
-
event: Pick<RequestEvent<Partial<Record<string, string>>, null | string>, "cookies">
-
Optional
expiryMargin?: number
-
Optional
options?: SupabaseClientOptionsWithoutAuth<SchemaName>
-
supabaseKey: string
-
supabaseUrl: string
Returns SupabaseClient<Database, SchemaName, Schema>
Authenticated Supabase client
Handle
Types