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.
- package/bundles/ps-toolkit-ui.umd.js +3 -3
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/login.class.js +4 -3
- package/fesm2015/ps-toolkit-ui.js +3 -2
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/login.class.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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
|
|
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,
|
|
6924
|
+
HelperClass.setCookie('Authorization', "Bearer " + r.Token, this.expireHours);
|
|
6925
6925
|
}
|
|
6926
6926
|
};
|
|
6927
6927
|
return LoginClass;
|