@skylabs-digital/react-identity-access 2.19.0 → 2.20.0
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/index.es.js
CHANGED
|
@@ -312,7 +312,9 @@ class pe {
|
|
|
312
312
|
if (!(e != null && e.expiresAt) || !e.refreshToken) return;
|
|
313
313
|
const r = e.expiresAt - this.proactiveRefreshMargin - Date.now();
|
|
314
314
|
if (r <= 0) {
|
|
315
|
-
this.
|
|
315
|
+
this.proactiveTimerId = setTimeout(() => {
|
|
316
|
+
this.backgroundRefresh();
|
|
317
|
+
}, 0);
|
|
316
318
|
return;
|
|
317
319
|
}
|
|
318
320
|
this.proactiveTimerId = setTimeout(() => {
|
|
@@ -1427,7 +1429,9 @@ function vr({ config: n = {}, children: e }) {
|
|
|
1427
1429
|
A,
|
|
1428
1430
|
q
|
|
1429
1431
|
]);
|
|
1430
|
-
ee(() => {
|
|
1432
|
+
ee(() => () => {
|
|
1433
|
+
l.destroy();
|
|
1434
|
+
}, [l]), ee(() => {
|
|
1431
1435
|
!n.initialRoles && t && (async () => {
|
|
1432
1436
|
try {
|
|
1433
1437
|
c(!0);
|