mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
Add function to check if fido2 device needs a PIN
This commit is contained in:
parent
36424a78e0
commit
cfef2879b5
1 changed files with 9 additions and 0 deletions
|
|
@ -409,6 +409,15 @@ class AppState: ObservableObject {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
func fido2DeviceNeedsPin() -> Bool {
|
||||
do {
|
||||
return try fido2.deviceHasPin()
|
||||
} catch {
|
||||
authError = error
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
func cancelSecurityKeyAssertationRequest() {
|
||||
self.fido2.cancel()
|
||||
|
|
|
|||
Loading…
Reference in a new issue