mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
clear BW_SESSION at the end of logout
This commit is contained in:
@@ -96,7 +96,6 @@ export class Main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async logout() {
|
async logout() {
|
||||||
process.env.BW_SESSION = null;
|
|
||||||
const userId = await this.userService.getUserId();
|
const userId = await this.userService.getUserId();
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
this.syncService.setLastSync(new Date(0)),
|
this.syncService.setLastSync(new Date(0)),
|
||||||
@@ -109,6 +108,7 @@ export class Main {
|
|||||||
this.collectionService.clear(userId),
|
this.collectionService.clear(userId),
|
||||||
this.passwordGenerationService.clear(),
|
this.passwordGenerationService.clear(),
|
||||||
]);
|
]);
|
||||||
|
process.env.BW_SESSION = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async init() {
|
private async init() {
|
||||||
|
|||||||
Reference in New Issue
Block a user