You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.
TokenStorage.prototype.get = function (provider) {
var token = _super.prototype.get.call(this, provider);
if (token == null) {
return token;
}
var expired = TokenStorage.hasExpired(token);
if (expired) {
_super.prototype.delete.call(this, provider);
return null;
} else {
return token;
}
};
_super.prototype.delete.call(this, provider); is being called if expired. Which in turn is calling get causing a circular reference and blowing the stack.
Storage.prototype.delete = function (key) {
try {
var value = this.get(key);
if (value === undefined) {
throw new ReferenceError("Key: " + key + " not found.");
}
var scopedKey = this._scope(key);
this._storage.removeItem(scopedKey);
return value;
} catch (error) {
throw new __WEBPACK_IMPORTED_MODULE_5__errors_exception__["a" /* Exception */]("Unable to delete '" + key + "' from storage", error);
}
};
The text was updated successfully, but these errors were encountered:
_super.prototype.delete.call(this, provider); is being called if expired. Which in turn is calling get causing a circular reference and blowing the stack.
The text was updated successfully, but these errors were encountered: