Browse Source

Improve error handling

pull/4338/head
Thomas Kaul 6 months ago
parent
commit
592d4dcf3c
  1. 10
      apps/client/src/app/core/http-response.interceptor.ts

10
apps/client/src/app/core/http-response.interceptor.ts

@ -108,10 +108,12 @@ export class HttpResponseInterceptor implements HttpInterceptor {
});
}
} else if (error.status === StatusCodes.UNAUTHORIZED) {
if (this.webAuthnService.isEnabled()) {
this.router.navigate(['/webauthn']);
} else if (!error.url.includes('/data-providers/ghostfolio/status')) {
this.tokenStorageService.signOut();
if (!error.url.includes('/data-providers/ghostfolio/status')) {
if (this.webAuthnService.isEnabled()) {
this.router.navigate(['/webauthn']);
} else {
this.tokenStorageService.signOut();
}
}
}

Loading…
Cancel
Save