Add function to check if fido2 device needs a PIN

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

View file

@ -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()