mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
remove additional keys in state service clean
This commit is contained in:
@@ -3023,6 +3023,8 @@ export class StateService<
|
||||
|
||||
protected async removeAccountFromSecureStorage(userId: string = null): Promise<void> {
|
||||
userId = userId ?? (await this.state())?.activeUserId;
|
||||
await this.setUserSymKeyAuto(null, { userId: userId });
|
||||
await this.setUserSymKeyBiometric(null, { userId: userId });
|
||||
await this.setCryptoMasterKeyAuto(null, { userId: userId });
|
||||
await this.setCryptoMasterKeyBiometric(null, { userId: userId });
|
||||
await this.setCryptoMasterKeyB64(null, { userId: userId });
|
||||
|
||||
Reference in New Issue
Block a user