Add the AuthResponseInterceptor in the AppModule

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        }    ][...]

Get ASP.NET Core 2 and Angular 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.