1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

Add isLoginWithPasskeySupported function to reduce client type checking in template.

This commit is contained in:
Alec Rippberger
2024-10-01 13:02:39 -05:00
parent a104a9250d
commit ca0520cea0
4 changed files with 18 additions and 2 deletions

View File

@@ -375,6 +375,10 @@ export class LoginComponent implements OnInit, OnDestroy {
this.loginEmailService.setLoginEmail(this.formGroup.value.email);
}
isLoginWithPasskeySupported() {
return this.loginComponentService.isLoginWithPasskeySupported();
}
protected async goToHint(): Promise<void> {
await this.saveEmailSettings();
await this.router.navigateByUrl("/hint");