Skip to content

Commit

Permalink
apply suggestion from @kangmingtay
Browse files Browse the repository at this point in the history
Co-authored-by: Kang Ming <[email protected]>
  • Loading branch information
hf and kangmingtay authored Jun 24, 2024
1 parent 96469ab commit 45f860b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cookies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export function createStorageFromOptions(
return [];
};

// this is not OK because the developer is using auth functions that require setting some state, so that must error out
// this is NOT OK because the developer is using auth functions that require setting some state, so that must error out
setAll = () => {
throw new Error(
"@supabase/ssr: createBrowserClient in non-browser runtimes (including Next.js pre-rendering mode) was not initialized cookie options that specify getAll and setAll functions (deprecated: alternatively use get, set and remove), but they were needed",
Expand Down

0 comments on commit 45f860b

Please sign in to comment.