diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..8248d0b Binary files /dev/null and b/bun.lockb differ diff --git a/src/createServerClient.ts b/src/createServerClient.ts index c59edb1..c67aa57 100644 --- a/src/createServerClient.ts +++ b/src/createServerClient.ts @@ -5,14 +5,7 @@ import type { } from "@supabase/supabase-js/dist/module/lib/types"; import { VERSION } from "./version"; -import { - DEFAULT_COOKIE_OPTIONS, - combineChunks, - createChunks, - deleteChunks, - isBrowser, - isChunkLike, -} from "./utils"; + import { createStorageFromOptions, applyServerStorage } from "./cookies"; import type { CookieOptionsWithName, @@ -170,11 +163,11 @@ export function createServerClient< ...(options?.cookieOptions?.name ? { storageKey: options.cookieOptions.name } : null), - ...options?.auth, flowType: "pkce", autoRefreshToken: false, detectSessionInUrl: false, persistSession: true, + ...options?.auth, storage, }, },