mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 13:49:09 +03:00
[Docs] Fix createClient function to resolve type errors (#20799)
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
This commit is contained in:
1 parent
9a5d8e00b6
commit
39e831bc09
1 file changed
+2
-2
@@ -155,10 +155,10 @@ export function createClient(cookieStore: ReturnType<typeof cookies>) {
|
||||
return cookieStore.get(name)?.value
|
||||
},
|
||||
set(name: string, value: string, options: CookieOptions) {
|
||||
return cookieStore.set({ name, value, ...options })
|
||||
cookieStore.set({ name, value, ...options })
|
||||
},
|
||||
remove(name: string, options: CookieOptions) {
|
||||
return cookieStore.set({ name, value: '', ...options })
|
||||
cookieStore.set({ name, value: '', ...options })
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user