1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-21 16:18:28 +01: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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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> {