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:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user