mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
implement hasKey helper
This commit is contained in:
@@ -20,8 +20,8 @@ export class AuthGuardService implements CanActivate {
|
||||
return false;
|
||||
}
|
||||
|
||||
const key = await this.cryptoService.getKey();
|
||||
if (key == null) {
|
||||
const hasKey = await this.cryptoService.hasKey();
|
||||
if (!hasKey) {
|
||||
this.router.navigate(['lock']);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user