Skip to content

Commit

Permalink
refactor: fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
felixgabler committed Jun 25, 2024
1 parent e2878b4 commit 830161c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/plugins/supabase.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/server/services/serverSupabaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const serverSupabaseClient = async <T>(event: H3Event): Promise<SupabaseC
event.context._supabaseClient = createServerClient(url, key, {
auth,
cookies: {
getAll: () => parseCookieHeader(getHeader(event, 'Cookie')),
getAll: () => parseCookieHeader(getHeader(event, 'Cookie') ?? ''),
setAll: (
cookies: {
name: string
Expand Down

0 comments on commit 830161c

Please sign in to comment.