1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Fix auto biometric prompt for browser (#8137)

This commit is contained in:
Matt Gibson
2024-02-28 11:46:21 -05:00
committed by GitHub
parent 668980ad38
commit 0e9a4239a5

View File

@@ -104,7 +104,7 @@ export class LockComponent extends BaseLockComponent {
async ngOnInit() { async ngOnInit() {
await super.ngOnInit(); await super.ngOnInit();
const disableAutoBiometricsPrompt = await firstValueFrom( const autoBiometricsPrompt = await firstValueFrom(
this.biometricStateService.promptAutomatically$, this.biometricStateService.promptAutomatically$,
); );
@@ -112,7 +112,7 @@ export class LockComponent extends BaseLockComponent {
document.getElementById(this.pinEnabled ? "pin" : "masterPassword")?.focus(); document.getElementById(this.pinEnabled ? "pin" : "masterPassword")?.focus();
if ( if (
this.biometricLock && this.biometricLock &&
!disableAutoBiometricsPrompt && autoBiometricsPrompt &&
this.isInitialLockScreen && this.isInitialLockScreen &&
(await this.authService.getAuthStatus()) === AuthenticationStatus.Locked (await this.authService.getAuthStatus()) === AuthenticationStatus.Locked
) { ) {