Skip to content

Commit

Permalink
fix: Hide "Unauthenticated" error in the frontend
Browse files Browse the repository at this point in the history
Unauthenticated redirects to the login page. It's not an error itself and should
not be displayed with error message.
  • Loading branch information
MoritzWeber0 committed Aug 14, 2024
1 parent deeacd1 commit 8a636b2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export class ErrorHandlingInterceptor implements HttpInterceptor {
error: (err) => {
if (
this.isErrorHandlingSkipped(request) ||
err.error.detail?.err_code == 'TOKEN_SIGNATURE_EXPIRED'
err.error.detail?.err_code == 'TOKEN_SIGNATURE_EXPIRED' ||
err.error.detail?.err_code == 'UNAUTHENTICATED'
) {
return;
}
Expand Down

0 comments on commit 8a636b2

Please sign in to comment.