I have started working on angular 6 and I am calling different APIs with authentication header. I am using httpInterceptors to add AUth header which seems to work fine. However I have a requirement where some of the APIs need different auth header /or some of the properties of auth header than the other ones.Is there any way to customize the interceptors where I can intercept one request in one way and other in different way?
As @Iquery said. You can check in your intercepter with a regex your url. And based on that do your auth logic. Another option would be to create different intercepters, based on your auth logic and extend from the base intercepter.