@iblai/web-utils 1.10.1 → 1.10.2
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.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9389,10 +9389,10 @@ function useAuthProvider({ middleware = new Map(), onAuthSuccess, onAuthFailure,
|
|
|
9389
9389
|
var _a;
|
|
9390
9390
|
try {
|
|
9391
9391
|
setIsAuthenticating(true);
|
|
9392
|
-
if (!hasNonExpiredAuthToken()) {
|
|
9392
|
+
if ((storageService === null || storageService === void 0 ? void 0 : storageService.getItem(LOCAL_STORAGE_KEYS.AUTH_TOKEN)) && !hasNonExpiredAuthToken()) {
|
|
9393
9393
|
const reason = "Auth token expired";
|
|
9394
9394
|
onAuthFailure === null || onAuthFailure === void 0 ? void 0 : onAuthFailure(reason);
|
|
9395
|
-
console.log("[auth-redirect] Auth token expired");
|
|
9395
|
+
console.log("[auth-redirect] Auth token has expired", storageService === null || storageService === void 0 ? void 0 : storageService.getItem(LOCAL_STORAGE_KEYS.AUTH_TOKEN));
|
|
9396
9396
|
safeRedirectToAuthSpa(undefined, undefined, true);
|
|
9397
9397
|
return;
|
|
9398
9398
|
}
|