Verifies ownership of a token by submitting the verification code to the BLOCKv Platform.
User tokens may be verified at any point in the account's lifetime. However, it is recommended that User token are verified on or soon after registration. This ensures the communication channels with the user are valid.
One special case to note is when using login without a password. Since an OTP is being captured, the User token is automatically verified on the BLOCKv Platform.
import io.blockv.common.internal.net.rest.exception.BlockvException
import io.blockv.core.client.manager.UserManager.TokenType
//verify user token
blockv.getUserManager().verifyUserToken(/*token,token-type,code*/)
Note: You can access the function through the UserManager
found in your blockv
singleton. See Getting Started
// blockv is the Blockv sdk singleton created in getting started
blockv.getUserManager()
.verifyUserToken("john.doe@example.com", UserManager.TokenType.EMAIL, "0000")
.subscribe(() -> {/*Success*/},
throwable -> {/*Failure*/});
// blockv is the Blockv sdk singleton created in getting started
blockv.getUserManager()
.verifyUserToken("+11234567890", UserManager.TokenType.PHONE_NUMBER, "0000")
.subscribe(() -> {/*Success*/},
throwable -> {/*Failure*/});