Browse Source

Improve error handling

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

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

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

Loading…
Cancel
Save