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:
parent
83812d471c
commit
7d3c6dbed7
@ -613,6 +613,7 @@ export class CryptoService implements CryptoServiceAbstraction {
|
|||||||
await this.clearProviderKeys(false, userId);
|
await this.clearProviderKeys(false, userId);
|
||||||
await this.clearKeyPair(false, userId);
|
await this.clearKeyPair(false, userId);
|
||||||
await this.clearPinKeys(userId);
|
await this.clearPinKeys(userId);
|
||||||
|
await this.activeUserEverHadUserKey.update(() => null);
|
||||||
}
|
}
|
||||||
|
|
||||||
async rsaEncrypt(data: Uint8Array, publicKey?: Uint8Array): Promise<EncString> {
|
async rsaEncrypt(data: Uint8Array, publicKey?: Uint8Array): Promise<EncString> {
|
||||||
|
Loading…
Reference in New Issue
Block a user