Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { CacheInterceptor } from '@app-seller/auth/interceptors/cache/cache-interceptor';
@NgModule({
declarations: [AppComponent],
imports: [
// This app
AppRoutingModule,
AuthModule,
// Third party
BrowserAnimationsModule,
BrowserModule,
LayoutModule,
NgProgressModule.forRoot(),
NgProgressHttpModule,
OrderCloudModule.forRoot(OcSDKConfig),
CookieModule.forRoot(),
ToastrModule.forRoot(),
SharedModule.forRoot(),
],
providers: [
{
provide: applicationConfiguration,
useValue: ocAppConfig,
},
{
provide: HTTP_INTERCEPTORS,
useClass: AutoAppendTokenInterceptor,
multi: true,
},
{
provide: HTTP_INTERCEPTORS,
// app modules
AppRoutingModule,
AuthModule,
LayoutModule,
/**
* third party modules
* only those that must be installed
* with forRoot (except shared) should be defined here, all else
* can live in shared
*/
SharedModule,
CookieModule.forRoot(),
NgProgressModule,
NgProgressHttpModule,
OrderCloudModule.forRoot(OcSDKConfig),
ToastrModule.forRoot(),
NgxImageZoomModule.forRoot(),
],
providers: [
{
provide: HTTP_INTERCEPTORS,
useClass: AutoAppendTokenInterceptor,
multi: true,
},
{
provide: HTTP_INTERCEPTORS,
useClass: RefreshTokenInterceptor,
multi: true,
},
{
provide: HTTP_INTERCEPTORS,