1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-07-02 11:34:53 +02:00

clear ever had user key for logged out user instead of active (#7911)

This commit is contained in:
Jake Fink 2024-02-12 11:12:35 -05:00 committed by GitHub
parent 6b12968721
commit f786c8ce93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -625,7 +625,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);
await this.stateProvider.setUserState(USER_EVER_HAD_USER_KEY, null, userId);
}
async rsaEncrypt(data: Uint8Array, publicKey?: Uint8Array): Promise<EncString> {