feat(MED-97): fix client type

This commit is contained in:
2025-09-26 09:45:35 +03:00
parent f091ed5b49
commit 579ec7547e

View File

@@ -11,10 +11,10 @@ import { getSupabaseClientKeys } from '../get-supabase-client-keys';
* @name getSupabaseServerClient * @name getSupabaseServerClient
* @description Creates a Supabase client for use in the Server. * @description Creates a Supabase client for use in the Server.
*/ */
export function getSupabaseServerClient<GenericSchema = Database>() { export function getSupabaseServerClient() {
const keys = getSupabaseClientKeys(); const keys = getSupabaseClientKeys();
return createServerClient<GenericSchema>(keys.url, keys.anonKey, { return createServerClient<Database>(keys.url, keys.anonKey, {
auth: { auth: {
flowType: 'pkce', flowType: 'pkce',
autoRefreshToken: true, autoRefreshToken: true,