Added redirect after logout

This commit is contained in:
Giuseppe Digilio
2018-04-04 10:59:08 +02:00
parent b9e0d6f18a
commit 5fc6d4ead8
2 changed files with 8 additions and 11 deletions

View File

@@ -129,7 +129,7 @@ export class AuthEffects {
public logOutSuccess: Observable<Action> = this.actions$
.ofType(AuthActionTypes.LOG_OUT_SUCCESS)
.do(() => this.authService.removeToken())
.do(() => this.authService.refreshPage());
.do(() => this.authService.refreshAfterLogout());
@Effect({dispatch: false})
public redirectToLogin: Observable<Action> = this.actions$