As always, the new interceptor has to be added in the app.module.shared.ts file right below the existing one:
[...]
import { AuthInterceptor } from './services/auth.interceptor';
import { AuthResponseInterceptor } from './services/auth.response.interceptor';
[...]
providers: [
AuthService,
{
provide: HTTP_INTERCEPTORS,
useClass: AuthInterceptor,
multi: true
},
{
provide: HTTP_INTERCEPTORS,
useClass: AuthResponseInterceptor,
multi: true
}
]
[...]