1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-30 08:10:34 +01:00

clear BW_SESSION at the end of logout

This commit is contained in:
Kyle Spearrin 2018-05-15 23:28:03 -04:00
parent 6fff69c0ea
commit 6663731630

View File

@ -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() {