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