From 62c43794e94fbf4f5640cde342532d35e9e32978 Mon Sep 17 00:00:00 2001 From: Jacob Fink Date: Wed, 7 Jun 2023 13:27:28 -0400 Subject: [PATCH] remove additional keys in state service clean --- libs/common/src/platform/services/state.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/common/src/platform/services/state.service.ts b/libs/common/src/platform/services/state.service.ts index 2189716f676..0d535e9d6de 100644 --- a/libs/common/src/platform/services/state.service.ts +++ b/libs/common/src/platform/services/state.service.ts @@ -3023,6 +3023,8 @@ export class StateService< protected async removeAccountFromSecureStorage(userId: string = null): Promise { userId = userId ?? (await this.state())?.activeUserId; + await this.setUserSymKeyAuto(null, { userId: userId }); + await this.setUserSymKeyBiometric(null, { userId: userId }); await this.setCryptoMasterKeyAuto(null, { userId: userId }); await this.setCryptoMasterKeyBiometric(null, { userId: userId }); await this.setCryptoMasterKeyB64(null, { userId: userId });