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

[PM-16978] Add support for fido2 2fa on mac (#12823)

* Add support for fido2 2fa on mac

* Update comment

* Update 2fa setup message
This commit is contained in:
Bernd Schoolmann
2025-01-31 18:02:03 +01:00
committed by GitHub
parent 82f416c292
commit 91509f2f7a
3 changed files with 7 additions and 12 deletions

View File

@@ -77,10 +77,11 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
return (await this.getApplicationVersion()).split(/[+|-]/)[0].trim();
}
// Temporarily restricted to only Windows until https://github.com/electron/electron/pull/28349
// has been merged and an updated electron build is available.
// Restricted to Windows and Mac. Mac is missing support for pin entry, and Linux is missing support entirely and has to be implemented in another way.
supportsWebAuthn(win: Window): boolean {
return this.getDevice() === DeviceType.WindowsDesktop;
return (
this.getDevice() === DeviceType.WindowsDesktop || this.getDevice() === DeviceType.MacOsDesktop
);
}
supportsDuo(): boolean {