@auth0/auth0-spa-js 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -472,7 +472,7 @@
472
472
  exports.default = SuperTokensLock;
473
473
  }));
474
474
  var Lock = unwrapExports(browserTabsLock);
475
- var version = "2.0.7";
475
+ var version = "2.0.8";
476
476
  const DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS = 60;
477
477
  const DEFAULT_POPUP_CONFIG_OPTIONS = {
478
478
  timeoutInSeconds: DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS
@@ -989,20 +989,17 @@
989
989
  this.clientId = clientId;
990
990
  this.cookieDomain = cookieDomain;
991
991
  this.storageKey = `${TRANSACTION_STORAGE_KEY_PREFIX}.${this.clientId}`;
992
- this.transaction = this.storage.get(this.storageKey);
993
992
  }
994
993
  create(transaction) {
995
- this.transaction = transaction;
996
994
  this.storage.save(this.storageKey, transaction, {
997
995
  daysUntilExpire: 1,
998
996
  cookieDomain: this.cookieDomain
999
997
  });
1000
998
  }
1001
999
  get() {
1002
- return this.transaction;
1000
+ return this.storage.get(this.storageKey);
1003
1001
  }
1004
1002
  remove() {
1005
- delete this.transaction;
1006
1003
  this.storage.remove(this.storageKey, {
1007
1004
  cookieDomain: this.cookieDomain
1008
1005
  });