Angular 4 and OAuth - Intercept 401 responses, refresh the access token and retry request
As the title says, I am working on an Angular 4 project with OAuth authentication. Whenever an http request responds with status code 401 I am intercepting the request, renewing the access token and retrying the failed request. When I receive a 401, the request is correctly intercepted and the access token gets refreshed just as it should. The failed request also gets executed again, but doesn't deliver it's response to the component any longer. So the problem is that my component, who should observe on the request response complains with the log 'Error receiving the properties' for the view