@digitalpersona/enrollment
Version:
DigitalPersona Enrollment API
26 lines (15 loc) • 852 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@digitalpersona/enrollment](./enrollment.md) > [TimeOtpEnroll](./enrollment.timeotpenroll.md) > [sendVerificationCode](./enrollment.timeotpenroll.sendverificationcode.md)
## TimeOtpEnroll.sendVerificationCode() method
Sends an verification code using SMS to the user's device.
<b>Signature:</b>
```typescript
sendVerificationCode(key: Uint8Array, phoneNumber: string): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| key | <code>Uint8Array</code> | a secret key to "seed" an OTP generator and start generating verification codes. |
| phoneNumber | <code>string</code> | a phone number to send a current verification code to. |
<b>Returns:</b>
`Promise<void>`