diff --git a/Xcodes/Backend/AppState.swift b/Xcodes/Backend/AppState.swift index 1d66305..a99b6e7 100644 --- a/Xcodes/Backend/AppState.swift +++ b/Xcodes/Backend/AppState.swift @@ -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()