From 7d3c6dbed72be64d10701fab6b52be8771bf5526 Mon Sep 17 00:00:00 2001 From: Jake Fink Date: Thu, 1 Feb 2024 09:36:29 -0500 Subject: [PATCH] [PM-5995] Clear everhaduserkey on logout (#7759) * clear everhaduserkey on logout * change to null --- libs/common/src/platform/services/crypto.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/common/src/platform/services/crypto.service.ts b/libs/common/src/platform/services/crypto.service.ts index c94ced546f..4bee43f175 100644 --- a/libs/common/src/platform/services/crypto.service.ts +++ b/libs/common/src/platform/services/crypto.service.ts @@ -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 {