We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c1e4d1 commit 88f7772Copy full SHA for 88f7772
src/helpers/cookies.ts
@@ -52,7 +52,7 @@ export function setCookie(
52
sameSite: options.sameSite || "strict",
53
secure: options.secure ?? document.location.protocol === "https:",
54
// If expires is not set, set it to -1 (the past), so the cookie is deleted immediately
55
- expires: !value ? -1 : options.expires ?? 0,
+ expires: !value ? -1 : (options.expires ?? 0),
56
domain: options.domain,
57
};
58
0 commit comments