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

Pass the client state created during the enrollment flow or via IDV Bridge to recover the account on a new device. The client state is the one you obtained and stored securely when enrolling users via IDV Bridge or the Mobile SDK on the previous sub-page

When enrolling from the client state, Keyless shows the enrollment UI to users as of 5.0.1 including the live filters.


// 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}")
    }
  }
)

The account is recovered and it's now possible to authenticate the user with ongoing 2 factor authentication with a single

Last updated

Was this helpful?