mirror of
https://github.com/bitwarden/jslib
synced 2025-12-22 11:13:17 +00:00
implement hasKey helper
This commit is contained in:
@@ -179,8 +179,8 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
}
|
||||
|
||||
const decCiphers: CipherView[] = [];
|
||||
const key = await this.cryptoService.getKey();
|
||||
if (key == null) {
|
||||
const hasKey = await this.cryptoService.hasKey();
|
||||
if (!hasKey) {
|
||||
throw new Error('No key.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user