1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-24 12:06:15 +01:00

use valid userId when logging out (#9334)

This commit is contained in:
Jake Fink 2024-05-28 15:17:30 -04:00 committed by GitHub
parent e47f83db80
commit bc170f5207
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1333,7 +1333,7 @@ export default class MainBackground {
]);
//Needs to be checked before state is cleaned
const needStorageReseed = await this.needsStorageReseed(userId);
const needStorageReseed = await this.needsStorageReseed(userBeingLoggedOut);
await this.stateService.clean({ userId: userBeingLoggedOut });
await this.accountService.clean(userBeingLoggedOut);