najm-auth 3.1.2 → 3.1.3
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/client/index.js
CHANGED
|
@@ -463,7 +463,8 @@ var NajmAuthClient = class _NajmAuthClient {
|
|
|
463
463
|
this._hydrated = true;
|
|
464
464
|
this.resetRefreshFailures();
|
|
465
465
|
if (!session || !session.user) {
|
|
466
|
-
this.api.blockAuthenticatedRequests();
|
|
466
|
+
if (this.refreshBlocked) this.api.blockAuthenticatedRequests();
|
|
467
|
+
else this.api.allowAuthenticatedRequests();
|
|
467
468
|
this.state = { ...INITIAL_STATE };
|
|
468
469
|
this.notify();
|
|
469
470
|
return;
|
|
@@ -1172,7 +1172,8 @@ var NajmAuthClient = class _NajmAuthClient {
|
|
|
1172
1172
|
this._hydrated = true;
|
|
1173
1173
|
this.resetRefreshFailures();
|
|
1174
1174
|
if (!session || !session.user) {
|
|
1175
|
-
this.api.blockAuthenticatedRequests();
|
|
1175
|
+
if (this.refreshBlocked) this.api.blockAuthenticatedRequests();
|
|
1176
|
+
else this.api.allowAuthenticatedRequests();
|
|
1176
1177
|
this.state = { ...INITIAL_STATE };
|
|
1177
1178
|
this.notify();
|
|
1178
1179
|
return;
|