Skip to content

Commit

Permalink
Merge pull request #817 from cam-inc/prepare-for-3pcd
Browse files Browse the repository at this point in the history
Prepare for 3pcd
  • Loading branch information
ejithon authored Mar 27, 2024
2 parents efbf809 + 0a02d69 commit 53eabf3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-insects-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@viron/lib": minor
---

Set partitioned cookie attributes as default
18 changes: 16 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"casbin": "^5.6.1",
"casbin-mongoose-adapter": "^5.3.0",
"casbin-sequelize-adapter": "^2.2.0",
"cookie": "^0.4.1",
"cookie": "0.6.0",
"debug": "^4.3.1",
"deepmerge": "^4.2.2",
"fast-copy": "^2.1.1",
Expand All @@ -40,7 +40,7 @@
"uuid": "^8.3.2"
},
"devDependencies": {
"@types/cookie": "^0.4.1",
"@types/cookie": "0.6.0",
"@types/debug": "^4.1.5",
"@types/json-pointer": "^1.0.31",
"@types/jsonwebtoken": "^8.5.1",
Expand Down
3 changes: 3 additions & 0 deletions packages/nodejs/src/helpers/cookies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export const genCookie = (
if (!opts.sameSite) {
opts.sameSite = 'none';
}
if (opts.partitioned === undefined) {
opts.partitioned = true;
}
return serialize(key, value, opts);
};

Expand Down

0 comments on commit 53eabf3

Please sign in to comment.