1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[PM-5995] Clear everhaduserkey on logout (#7759)

* clear everhaduserkey on logout

* change to null
This commit is contained in:
Jake Fink
2024-02-01 09:36:29 -05:00
committed by GitHub
parent 83812d471c
commit 7d3c6dbed7

View File

@@ -613,6 +613,7 @@ export class CryptoService implements CryptoServiceAbstraction {
await this.clearProviderKeys(false, userId);
await this.clearKeyPair(false, userId);
await this.clearPinKeys(userId);
await this.activeUserEverHadUserKey.update(() => null);
}
async rsaEncrypt(data: Uint8Array, publicKey?: Uint8Array): Promise<EncString> {