Skip to content

Commit

Permalink
feat: support partitioned cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav0 committed Aug 26, 2024
1 parent cb7a464 commit 136553c
Show file tree
Hide file tree
Showing 3 changed files with 3,218 additions and 4,404 deletions.
2 changes: 1 addition & 1 deletion packages/ember-simple-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"@ember/test-waiters": "^3",
"@embroider/addon-shim": "^1.0.0",
"@embroider/macros": "^1.0.0",
"@gaurav9576/ember-cookies": "^1.2.0",
"ember-cli-is-package-missing": "^1.0.0",
"ember-cookies": "^1.0.0",
"silent-error": "^1.0.0"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions packages/ember-simple-auth/src/session-stores/cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ export default BaseStore.extend({
}
}),

_partitioned: null,
partitioned: persistingProperty(),

_cookies: service('cookies'),

_secureCookies() {
Expand Down Expand Up @@ -272,6 +275,7 @@ export default BaseStore.extend({
path: this.get('cookiePath'),
secure: this._secureCookies(),
sameSite: this.get('sameSite'),
partitioned: this.get('partitioned'),
};
if (this._oldCookieName) {
A([this._oldCookieName, `${this._oldCookieName}-expiration_time`]).forEach(oldCookie => {
Expand Down
Loading

0 comments on commit 136553c

Please sign in to comment.