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

[...]
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.142.166