1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 14:23:32 +00: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

View File

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