1
0
mirror of https://github.com/bitwarden/jslib synced 2026-01-07 19:13:15 +00:00

[bug] Check for the right key in hasEncKey

This commit is contained in:
addison
2021-11-10 10:08:41 -05:00
parent 9307aa11fe
commit 96736ea200

View File

@@ -337,7 +337,7 @@ export class CryptoService implements CryptoServiceAbstraction {
}
async hasEncKey(): Promise<boolean> {
return await this.stateService.getDecryptedCryptoSymmetricKey() != null;
return await this.stateService.getEncryptedCryptoSymmetricKey() != null;
}
async clearKey(clearSecretStorage: boolean = true, userId?: string): Promise<any> {