This commit is contained in:
Levitating Pineapple
2024-10-16 12:33:24 +03:00
parent b24d4980b6
commit ffd0de57d5
@@ -67,13 +67,12 @@ func systemAuthenticate(_ reason: String, _ completed: @escaping (LAResult) -> V
laContext.evaluatePolicy(.deviceOwnerAuthentication, localizedReason: reason) { success, authError in
logger.debug("DEBUGGING: systemAuthenticate evaluatePolicy callback")
DispatchQueue.main.async {
AppSheetState.shared.biometricAuth = false
if success {
completed(LAResult.success)
AppSheetState.shared.biometricAuth = false
} else {
logger.error("DEBUGGING: systemAuthenticate authentication error: \(authError.debugDescription)")
completed(LAResult.failed(authError: authError?.localizedDescription))
AppSheetState.shared.biometricAuth = false
}
}
}