diff --git a/NucleicRemote/NucleicRemote/Views/ApprovalCardView.swift b/NucleicRemote/NucleicRemote/Views/ApprovalCardView.swift index 1bb53c8..a9c7cbc 100644 --- a/NucleicRemote/NucleicRemote/Views/ApprovalCardView.swift +++ b/NucleicRemote/NucleicRemote/Views/ApprovalCardView.swift @@ -92,23 +92,6 @@ struct ApprovalCardView: View { case .toolNameWithPattern: "\(approval.toolName) matching this pattern" } } - - private func authenticate() { - let context = LAContext() - var error: NSError? - guard context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) else { - authError = "Biometrics unavailable"; return - } - context.evaluatePolicy( - .deviceOwnerAuthenticationWithBiometrics, - localizedReason: "Approve a \(approval.risk.label) action" - ) { success, evalError in - Task { @MainActor in - if success { biometricPassed = true; authError = nil } - else { authError = evalError?.localizedDescription ?? "Authentication failed" } - } - } - } } /// The full content of an approval, wrapped and selectable. The box sizes to its