Browse Source

add a filter to oAuthService events

pull/7861/head
mehmet-erim 6 years ago
parent
commit
506de0d770
  1. 6
      npm/ng-packs/packages/core/src/lib/strategies/auth-flow.strategy.ts

6
npm/ng-packs/packages/core/src/lib/strategies/auth-flow.strategy.ts

@ -111,10 +111,8 @@ export class AuthPasswordFlowStrategy extends AuthFlowStrategy {
}
async init() {
this.oAuthService.events.subscribe(event => {
if (event.type === 'logout') {
this.removeRememberMe();
}
this.oAuthService.events.pipe(filter(event => event.type === 'logout')).subscribe(() => {
this.removeRememberMe();
});
if (!getCookieValueByName('rememberMe') && localStorage.getItem(this.storageKey)) {

Loading…
Cancel
Save