Browse Source
make calling authService.init() optional based on option
pull/19527/head
Ahmad Almunajjed
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
npm/ng-packs/packages/core/src/lib/utils/initial-utils.ts
|
|
@ -29,7 +29,7 @@ export function getInitialData(injector: Injector) { |
|
|
const checkAuthenticationState = injector.get(CHECK_AUTHENTICATION_STATE_FN_KEY, noop, { |
|
|
const checkAuthenticationState = injector.get(CHECK_AUTHENTICATION_STATE_FN_KEY, noop, { |
|
|
optional: true, |
|
|
optional: true, |
|
|
}); |
|
|
}); |
|
|
if (authService) { |
|
|
if (!options.skipiInitAuthService && authService) { |
|
|
await authService.init(); |
|
|
await authService.init(); |
|
|
} |
|
|
} |
|
|
if (options.skipGetAppConfiguration) return; |
|
|
if (options.skipGetAppConfiguration) return; |
|
|
|