Add function to check if a FIDO2 device is even connected

This commit is contained in:
Edgar Story 2024-11-12 09:12:44 +00:00
parent cfef2879b5
commit a43bf63aab
No known key found for this signature in database
GPG key ID: E808B9DE966FFDDA

View file

@ -410,6 +410,10 @@ class AppState: ObservableObject {
}
}
func fido2DeviceIsPresent() -> Bool {
fido2.hasDeviceAttached()
}
func fido2DeviceNeedsPin() -> Bool {
do {
return try fido2.deviceHasPin()