feat(MED-97): fix client type
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user