A Taste From The New Angular HTTP Client
Netanel Basal

One quick note about the HttpResponse interceptor: the code as shown which looks for a 401 won’t work. Errors come through in the observable’s error which is the second argument in map

Here’s the code reworked: https://gist.github.com/chenkie/ca8344b685aa03b7d282a6c9632f0744

Show your support

Clapping shows how much you appreciated Ryan Chenkie’s story.