gd-sprest 9.0.6 → 9.0.7
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/build/lib/contextInfo.js +2 -1
- package/build/rest.js +1 -1
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +1 -1
package/build/lib/contextInfo.js
CHANGED
|
@@ -789,7 +789,8 @@ var _ContextInfo = /** @class */ (function () {
|
|
|
789
789
|
var dtToken = new Date(digestValue.split(',')[1]);
|
|
790
790
|
var timeout = this.formDigestTimeoutSeconds || 0;
|
|
791
791
|
// Return true if it's still valid
|
|
792
|
-
|
|
792
|
+
// Time the token was granted + Timeout in seconds - 1 min (60000)
|
|
793
|
+
return Date.now() < dtToken.getTime() + timeout * 1000 - 60000;
|
|
793
794
|
};
|
|
794
795
|
var _a;
|
|
795
796
|
_a = _ContextInfo;
|
package/build/rest.js
CHANGED