Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#54 error handler for is authorized #56

Merged
merged 15 commits into from
Feb 16, 2021

Conversation

litvinets
Copy link
Contributor

  1. In the commit "error handler" you can find only this solution
    .pipe(
    tap(response => {
    return response;
    }),
    catchError(err => {
    console.log("Error is"+ err);
    return throwError(err);
    })
    )
  2. But then I've decided to add http-error.interceptor.ts and it reacts to all HTTP errors

@litvinets litvinets requested a review from dmitryy90 February 13, 2021 22:21
@litvinets litvinets requested a review from dmitryy90 February 15, 2021 17:09
@litvinets litvinets merged commit 864e9c8 into develop Feb 16, 2021
@litvinets litvinets deleted the #54-Error-handler-for-isAuthorized branch February 16, 2021 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants