build.gradle
at the end of repositories.build.gradle
.enrollDevice
when there's already a Trusted Device for the account. To enroll other devices, see Add a new Trusted Device.Cotter.signInWithDevice
function. 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 finishedcallback
: A custom Callback function that implements 2 methods: onSuccess
and onError
.TRUSTED_DEVICE
, there are 2 possible cases:Event
and 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.