mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-04-05 10:45:50 +00:00
Add function to check if a FIDO2 device is even connected
This commit is contained in:
parent
cfef2879b5
commit
a43bf63aab
1 changed files with 4 additions and 0 deletions
|
|
@ -410,6 +410,10 @@ class AppState: ObservableObject {
|
|||
}
|
||||
}
|
||||
|
||||
func fido2DeviceIsPresent() -> Bool {
|
||||
fido2.hasDeviceAttached()
|
||||
}
|
||||
|
||||
func fido2DeviceNeedsPin() -> Bool {
|
||||
do {
|
||||
return try fido2.deviceHasPin()
|
||||
|
|
|
|||
Loading…
Reference in a new issue