|
|
@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|