New Device Activation

This page explains how to then use the temporary state to then authenticate the user and bind the new device to then support ongoing 2 factor authentication.

Recover from temporary state

Pass the temporary state created during the enrollment flow or via IDV Bridge to recover the account on a new device. The temporary 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 temporary state, Keyless shows the enrollment UI to users as of 5.0.1 including the live filters.


// temporaryState retrieved from previous step
val temporaryState = "<your_temporary_state>"

val enrollConfig = BiomEnrollConfig(temporaryState = temporaryState)

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?