New Device Activation
This page explains how to then use the client state to then authenticate the user and bind the new device to then support ongoing 2 factor authentication.
Recover from client state
// clientState retrieved from previous step
val clientState = "<your_client_state>"
val enrollConfig = BiomEnrollConfig(clientState = clientState)
Keyless.enroll(
configuration = enrollConfig,
onCompletion = { result ->
when (result) {
is Keyless.KeylessResult.Success -> {
// account recovered
val userId = result.value.userId
}
is Keyless.KeylessResult.Failure -> Log.d("KeylessSDK ", "error code ${result.error.code}")
}
}
)
Last updated
Was this helpful?