From c4e0fc6672ebbe6d46f73a6922c38ff3b6890b68 Mon Sep 17 00:00:00 2001 From: addison Date: Tue, 16 Nov 2021 10:13:24 -0500 Subject: [PATCH] [bug] Don't clean up state until everything else is done on logout --- src/app/app.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 75fe648f..949c4e78 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -388,7 +388,6 @@ export class AppComponent implements OnInit { this.passwordGenerationService.clear(userId), this.vaultTimeoutService.clear(userId), this.policyService.clear(userId), - this.stateService.purge({ userId: userId }), this.keyConnectorService.clear(), ]); @@ -404,6 +403,8 @@ export class AppComponent implements OnInit { this.router.navigate(['login']); }); } + + await this.stateService.clean({ userId: userId }); } private async recordActivity() {