Skip to content

Commit

Permalink
Fixing createBrowserClient.ts to not fail accessing cookie properties…
Browse files Browse the repository at this point in the history
… like get/set/remove (#752)
  • Loading branch information
activenode authored Mar 17, 2024
1 parent 33bb23c commit a0daf2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/ssr/src/createBrowserClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export function createBrowserClient<

if (options) {
({ cookies, isSingleton = true, cookieOptions, ...userDefinedClientOptions } = options);
cookies = cookies || {};
}

const cookieClientOptions = {
Expand Down

0 comments on commit a0daf2c

Please sign in to comment.