From 66637316309ab47d4312b3b0ec5f94107e56e24d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 15 May 2018 23:28:03 -0400 Subject: [PATCH] clear BW_SESSION at the end of logout --- src/bw.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bw.ts b/src/bw.ts index 8db8e4f297..ad31ab468c 100644 --- a/src/bw.ts +++ b/src/bw.ts @@ -96,7 +96,6 @@ export class Main { } async logout() { - process.env.BW_SESSION = null; const userId = await this.userService.getUserId(); await Promise.all([ this.syncService.setLastSync(new Date(0)), @@ -109,6 +108,7 @@ export class Main { this.collectionService.clear(userId), this.passwordGenerationService.clear(), ]); + process.env.BW_SESSION = null; } private async init() {