Browse Source

feat: call setupAutomaticSilentRefresh on app initialization

pull/4995/head
mehmet-erim 6 years ago
parent
commit
f14396e7d8
  1. 3
      npm/ng-packs/packages/core/src/lib/handlers/oauth-configuration.handler.ts

3
npm/ng-packs/packages/core/src/lib/handlers/oauth-configuration.handler.ts

@ -17,6 +17,9 @@ export class OAuthConfigurationHandler {
@Inject(CORE_OPTIONS) private options: ABP.Root,
) {
this.oAuthService.configure(this.options.environment.oAuthConfig);
if (this.oAuthService.responseType === 'code') {
this.oAuthService.setupAutomaticSilentRefresh();
}
this.listenToSetEnvironment();
}

Loading…
Cancel
Save