ps-toolkit-ui 1.6.10 → 1.6.11

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.
@@ -6915,13 +6915,13 @@
6915
6915
  this.active = 0;
6916
6916
  this.onSuccess = null;
6917
6917
  this.rules = null;
6918
+ this.expireHours = 30 * 24;
6918
6919
  this.type = type;
6919
6920
  this.l = l;
6920
6921
  }
6921
- LoginClass.prototype.setCookie = function (r, hours) {
6922
- if (hours === void 0) { hours = 30 * 24; }
6922
+ LoginClass.prototype.setCookie = function (r) {
6923
6923
  if (r.Token) {
6924
- HelperClass.setCookie('Authorization', "Bearer " + r.Token, r.Expired ? r.Expired : hours);
6924
+ HelperClass.setCookie('Authorization', "Bearer " + r.Token, this.expireHours);
6925
6925
  }
6926
6926
  };
6927
6927
  return LoginClass;