Browse Source
Bugfix/improve error handling in http response interceptor (#4338)
* Improve error handling
* Update changelog
pull/4339/head^2
Thomas Kaul
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
7 additions and
4 deletions
-
CHANGELOG.md
-
apps/client/src/app/core/http-response.interceptor.ts
|
|
@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
- Improved the error handling in the `HttpResponseInterceptor` |
|
|
|
- Added missing assets in _Storybook_ setup |
|
|
|
|
|
|
|
## 2.139.1 - 2025-02-15 |
|
|
|
|
|
@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|