mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
Browser <-> desktop communication (#185)
* Add electron constant for browser integration * Add constant for browser biometrics. Ensure biometry is locked on lock. * Avoid saving keys outside desktop * Fix eslint warning * Add supportsSecureStorage helper to platformUtils to improve readability
This commit is contained in:
@@ -50,7 +50,7 @@ export class LockComponent implements OnInit {
|
||||
this.pinSet = await this.vaultTimeoutService.isPinLockSet();
|
||||
this.pinLock = (this.pinSet[0] && this.vaultTimeoutService.pinProtectedKey != null) || this.pinSet[1];
|
||||
this.supportsBiometric = await this.platformUtilsService.supportsBiometric();
|
||||
this.biometricLock = await this.vaultTimeoutService.isBiometricLockSet() && await this.cryptoService.hasKey();
|
||||
this.biometricLock = await this.vaultTimeoutService.isBiometricLockSet() && (await this.cryptoService.hasKey() || !this.platformUtilsService.supportsSecureStorage());
|
||||
this.biometricText = await this.storageService.get(ConstantsService.biometricText);
|
||||
this.email = await this.userService.getEmail();
|
||||
let vaultUrl = this.environmentService.getWebVaultUrl();
|
||||
@@ -158,7 +158,6 @@ export class LockComponent implements OnInit {
|
||||
}
|
||||
const success = await this.platformUtilsService.authenticateBiometric();
|
||||
|
||||
this.vaultTimeoutService.biometricLocked = !success;
|
||||
if (success) {
|
||||
await this.doContinue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user