Skip to content

Commit

Permalink
feat: remove _initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
BobrImperator committed Apr 4, 2022
1 parent 1f9e0da commit 8d11e04
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default Base.extend({
const cookieStorage = owner.lookup('session-store:cookie');
const options = this.getProperties('sameSite', 'cookieDomain', 'cookieName', 'cookieExpirationTime', 'cookiePath');

cookieStorage._initialize(options);
cookieStorage.setProperties(options);
this.set('cookieExpirationTime', cookieStorage.get('cookieExpirationTime'));

store = cookieStorage;
Expand Down
10 changes: 0 additions & 10 deletions packages/ember-simple-auth/addon/session-stores/cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,6 @@ export default BaseStore.extend({
if (owner && !this.hasOwnProperty('_fastboot')) {
this._fastboot = owner.lookup('service:fastboot');
}
},

_initialize(options) {
const clonedOptions = assign({}, options);
if (clonedOptions.cookieName) {
this.set('_cookieName', clonedOptions.cookieName);
}

delete clonedOptions.cookieName;
this.setProperties(clonedOptions);

let cachedExpirationTime = this._read(`${this.get('cookieName')}-expiration_time`);
if (cachedExpirationTime) {
Expand Down

0 comments on commit 8d11e04

Please sign in to comment.