70373: Stop impersonating button in navbar + clear cookie on logout

This commit is contained in:
Kristof De Langhe
2020-04-15 13:08:04 +02:00
parent e43aa15a70
commit c48bb2cbb0
9 changed files with 64 additions and 2 deletions

View File

@@ -201,6 +201,7 @@ export class AuthEffects {
.pipe(
ofType(AuthActionTypes.LOG_OUT),
switchMap(() => {
this.authService.stopImpersonating();
return this.authService.logout().pipe(
map((value) => new LogOutSuccessAction()),
catchError((error) => observableOf(new LogOutErrorAction(error)))