Remove Face ID Permission Text

Nucleic-Session: 3EF7F067-2199-41C2-997C-5546C1A8A5C4
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-04 23:31:24 -07:00
co-authored by Nucleic
parent d0b63121d3
commit 32ef11b000
@@ -92,23 +92,6 @@ struct ApprovalCardView: View {
case .toolNameWithPattern: "\(approval.toolName) matching this pattern" 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 /// The full content of an approval, wrapped and selectable. The box sizes to its