Skip to content

Commit

Permalink
set cookieExpirationTime when cookie store is initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
BobrImperator committed Jul 13, 2021
1 parent 04390ff commit d753b58
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ember-simple-auth/addon/session-stores/adaptive.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,13 @@ export default Base.extend({
options._isFastBoot = false;
store.setProperties(options);
} else {
store = getOwner(this).lookup(`session-store:cookie`, { dupa: true });
store = this.get('cookie');
const options = this.getProperties('sameSite', 'cookieDomain', 'cookieName', 'cookieExpirationTime', 'cookiePath');

store._initialize(options);
this.set('cookieExpirationTime', store.get('cookieExpirationTime'));
}

this.set('_store', store);
this._setupStoreEvents(store);
},
Expand Down

0 comments on commit d753b58

Please sign in to comment.