Skip to main content

@wildix/xbees-users-client > VerifyIdentityCommand

VerifyIdentityCommand class

Completes adding an identity by verifying the OTP sent to the new identity. Call after LinkIdentity.

Signature:

export declare class VerifyIdentityCommand extends VerifyIdentityCommand_base

Extends: VerifyIdentityCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { UsersClient, VerifyIdentityCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, VerifyIdentityCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // VerifyIdentityInput
accountId: "STRING_VALUE", // required
identity: "STRING_VALUE", // required
otp: "STRING_VALUE", // required
};
const command = new VerifyIdentityCommand(input);
const response = await client.send(command);
// { // VerifyIdentityOutput
// identity: { // Identity
// identity: "STRING_VALUE", // required
// account: "STRING_VALUE", // required
// verified: true || false,
// },
// };