This plugin demonstrates how you can use device credentials (PIN, Pattern, Password) in your app to authenticate the user before they are trying to complete some actions.
To use ConfirmCredential, you must first load the plugin at the top of your script using the LoadPlugin method like this:
Checks if the device's screen lock is active.
Creates the Confirm Credentials screen.
duration: If the user has unlocked the device Within the last this number of seconds. it can be considered as an authenticator. (Default: 30)