From 830161c4699e020b6eec4da46f3b0c5f6c6172af Mon Sep 17 00:00:00 2001 From: Felix Gabler Date: Tue, 25 Jun 2024 12:36:42 +0200 Subject: [PATCH] refactor: fix lint issue --- src/runtime/plugins/supabase.server.ts | 2 +- src/runtime/server/services/serverSupabaseClient.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/plugins/supabase.server.ts b/src/runtime/plugins/supabase.server.ts index df032498..7a6fe2b0 100644 --- a/src/runtime/plugins/supabase.server.ts +++ b/src/runtime/plugins/supabase.server.ts @@ -14,7 +14,7 @@ export default defineNuxtPlugin({ const client = createServerClient(url, key, { ...clientOptions, cookies: { - getAll: () => parseCookieHeader(getHeader(event, 'Cookie')), + getAll: () => parseCookieHeader(getHeader(event, 'Cookie') ?? ''), setAll: ( cookies: { name: string diff --git a/src/runtime/server/services/serverSupabaseClient.ts b/src/runtime/server/services/serverSupabaseClient.ts index 7988a8ee..59122a82 100644 --- a/src/runtime/server/services/serverSupabaseClient.ts +++ b/src/runtime/server/services/serverSupabaseClient.ts @@ -19,7 +19,7 @@ export const serverSupabaseClient = async (event: H3Event): Promise parseCookieHeader(getHeader(event, 'Cookie')), + getAll: () => parseCookieHeader(getHeader(event, 'Cookie') ?? ''), setAll: ( cookies: { name: string