Last active
November 4, 2018 01:38
-
-
Save alx-andru/8c19c47a033e196f6c3d43b876510097 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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