monkey-front-core 0.0.595 → 0.0.597
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/esm2020/lib/core/services/error/monkeyecx-http-error-handling.service.mjs +8 -2
- package/fesm2015/monkey-front-core.mjs +7 -1
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +7 -1
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.597.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.595.tgz +0 -0
|
@@ -5320,11 +5320,17 @@ class MonkeyEcxHttpErrorHandlingService extends MonkeyEcxCommonsService {
|
|
|
5320
5320
|
}
|
|
5321
5321
|
handleErrorRefreshToken(error, mkc) {
|
|
5322
5322
|
const hasToRefresh = this.monkeyecxAuthenticationService.refreshShouldHappen(error);
|
|
5323
|
+
console.log('!!!!!!!!!');
|
|
5324
|
+
console.log(error.status);
|
|
5325
|
+
console.log(hasToRefresh);
|
|
5323
5326
|
if ((error.status === 401 || error.status === 400) && hasToRefresh) {
|
|
5324
|
-
|
|
5327
|
+
console.log('==========1');
|
|
5325
5328
|
setTimeout(() => {
|
|
5326
5329
|
this.handleMessage(error, mkc);
|
|
5327
5330
|
}, 1200);
|
|
5331
|
+
console.log('==========2');
|
|
5332
|
+
NgZone.call(this.monkeyecxAuthenticationService.redirectLoginWelcomeBack(), {});
|
|
5333
|
+
console.log('==========3');
|
|
5328
5334
|
}
|
|
5329
5335
|
else if (!this.isHttpCodeIgnoreMessage(mkc, error.status)) {
|
|
5330
5336
|
this.handleMessage(error, mkc);
|