Browse Source
Merge pull request #19527 from AhmadAlMunajjed/skipiInitAuthService-option
Implement skipInitAuthService option in ng core package
pull/19601/head
Masum ULU
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
1 deletions
-
npm/ng-packs/packages/core/src/lib/models/common.ts
-
npm/ng-packs/packages/core/src/lib/utils/initial-utils.ts
|
|
|
@ -9,6 +9,7 @@ export namespace ABP { |
|
|
|
environment: Partial<Environment>; |
|
|
|
registerLocaleFn: (locale: string) => Promise<any>; |
|
|
|
skipGetAppConfiguration?: boolean; |
|
|
|
skipInitAuthService?: boolean; |
|
|
|
sendNullsAsQueryParam?: boolean; |
|
|
|
tenantKey?: string; |
|
|
|
localizations?: Localization[]; |
|
|
|
|
|
|
|
@ -29,7 +29,7 @@ export function getInitialData(injector: Injector) { |
|
|
|
const checkAuthenticationState = injector.get(CHECK_AUTHENTICATION_STATE_FN_KEY, noop, { |
|
|
|
optional: true, |
|
|
|
}); |
|
|
|
if (authService) { |
|
|
|
if (!options.skipInitAuthService && authService) { |
|
|
|
await authService.init(); |
|
|
|
} |
|
|
|
if (options.skipGetAppConfiguration) return; |
|
|
|
|