Skip to content

Commit a43bf63

Browse files
Add function to check if a FIDO2 device is even connected
1 parent cfef287 commit a43bf63

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Xcodes/Backend/AppState.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,10 @@ class AppState: ObservableObject {
410410
}
411411
}
412412

413+
func fido2DeviceIsPresent() -> Bool {
414+
fido2.hasDeviceAttached()
415+
}
416+
413417
func fido2DeviceNeedsPin() -> Bool {
414418
do {
415419
return try fido2.deviceHasPin()

0 commit comments

Comments
 (0)