[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
1 changed files with 1 additions and 0 deletions

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