API

Common

Getting Started
Errors and Codes

User

Register
Login
Get User Profile
Update Profile
Upload Avatar
Reset Password
Logout
Get Public User Profile

User Token

List Tokens
Add Token
Delete Token
Set Default Token
Verify Token
Reset Verification

User vAtom

Get vAtoms by IDs
Get vAtom Inventory
Search vAtoms
Get Actions
Perform Actions
Trash vAtom

User Activity

Get My Threads
Get My Thread Messages
Send Message

Map

Geo Discover vAtoms
Geo Discover vAtom Groups

Update Stream

Web Socket

Face Infrastructure

Face View Registration
Vatom View
Face Selection Procedure

Verify Token

Overview

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.

Required imports

import io.blockv.common.internal.net.rest.exception.BlockvException
import io.blockv.core.client.manager.UserManager.TokenType

Request

//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

Example

Verify user token email

// 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*/});

Verify user token phone number

// blockv is the Blockv sdk singleton created in getting started
blockv.getUserManager()
      .verifyUserToken("+11234567890", UserManager.TokenType.PHONE_NUMBER, "0000")
      .subscribe(() -> {/*Success*/},
      throwable -> {/*Failure*/});
©2020 BLOCKv
Info