@lenne.tech/ng-base 0.3.13 → 12.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1027,7 +1027,7 @@ class BaseModule {
1027
1027
  /**
1028
1028
  * Set configuration of base module in root module of the app
1029
1029
  */
1030
- static forRoot(baseModuleConfig = {}) {
1030
+ static forRoot(baseModuleConfig = {}, AppAuthService) {
1031
1031
  // Default config
1032
1032
  const config = Object.assign({ apiUrl: 'localhost:3000', authGuardRedirectUrl: '/auth', logging: false, version: null, prefix: null, scrollDetectionOffset: 200, scrollOffset: 100, storageType: 'local' }, baseModuleConfig);
1033
1033
  // Prepare providers
@@ -1042,7 +1042,7 @@ class BaseModule {
1042
1042
  providers.push({
1043
1043
  provide: APOLLO_OPTIONS,
1044
1044
  useFactory: apolloOptionsFactory,
1045
- deps: [BASE_MODULE_CONFIG, HttpLink, AuthService, WsService],
1045
+ deps: [BASE_MODULE_CONFIG, HttpLink, AppAuthService ? AppAuthService : AuthService, WsService],
1046
1046
  });
1047
1047
  }
1048
1048
  else if (config.logging) {