build.gradleat the end of repositories.
enrollDevicewhen there's already a Trusted Device for the account. To enroll other devices, see Add a new Trusted Device.
Cotter.signInWithDevicefunction. This will automatically detect whether the current device is a Trusted Device or not.
identifier: Your user's identifier (email/phone/username) that was used to register this user in Step 3.
callbackClass: The next activity class that you want to redirect to when the authentication request is finished
callback: A custom Callback function that implements 2 methods:
TRUSTED_DEVICE, there are 2 possible cases:
Eventand whether or not it's approved. The approval is based on whether or not the signature included in the request from the SDK is valid.