How to check for rooted iOS/iPadOS in our apps, like the recent checkra1n exploit?

I was going through the checkra1n exploit which jailbreaks the iOS and looked at a few open-source libraries that alert's the user that your device is compromised.


Is there a security certificate that can recognize that the device is jailbroken or a direct link/API to Apple's servers that our app verifies before it goes through a critical transaction?


Basically, the problem statement here is that a malicious user should not be able to access the critical transactional data from the rooted device or the app's sandboxed environment.