Skip to content

Instantly share code, notes, and snippets.

@alx-andru
Last active November 4, 2018 01:38
Show Gist options
  • Save alx-andru/8c19c47a033e196f6c3d43b876510097 to your computer and use it in GitHub Desktop.
Save alx-andru/8c19c47a033e196f6c3d43b876510097 to your computer and use it in GitHub Desktop.
...
export class OidcEffectsService {
constructor(private actions$: Actions, private router: Router) {}
@Effect({ dispatch: false })
onUserSignedOut$: Observable<Action> = this.actions$.pipe(
ofType(OidcActions.OidcActionTypes.OnUserSignedOut),
tap(args => {
this.router.navigate(['/home']);
})
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment