bt-core-app 2.0.136 → 2.0.137
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/dist/bt-core-app.js +2 -2
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -9497,8 +9497,8 @@ function pP(e) {
|
|
|
9497
9497
|
return e.tryRefreshToken ?? (e.tryRefreshToken = async () => {
|
|
9498
9498
|
if (e.useTokenRefresh !== !0 || ia(r.value.refreshToken) || ia(r.value.refreshExpiresOn))
|
|
9499
9499
|
return;
|
|
9500
|
-
const A = it.fromFormat(r.value.refreshExpiresOn, t), L = it.fromFormat(r.value.expiresOn, t), V = it.utc().
|
|
9501
|
-
if (!(V > A.
|
|
9500
|
+
const A = it.fromFormat(r.value.refreshExpiresOn, t), L = it.fromFormat(r.value.expiresOn, t), V = it.utc().toFormat(t), P = L.plus({ minutes: 0 - a });
|
|
9501
|
+
if (!(V > A.toFormat(t)) && !(V < P.toFormat(t))) {
|
|
9502
9502
|
var E = yn(xv(), e.tokenRefreshPath ?? "refreshtoken");
|
|
9503
9503
|
try {
|
|
9504
9504
|
var $ = await fetch(E, {
|
package/package.json
CHANGED