@digitalpersona/authentication
Version:
DigitalPersona Authentication API
27 lines (15 loc) • 699 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@digitalpersona/authentication](./authentication.md) > [SmsOtpAuth](./authentication.smsotpauth.md) > [sendChallenge](./authentication.smsotpauth.sendchallenge.md)
## SmsOtpAuth.sendChallenge() method
Sends an SMS challenge with a OTP code to the user's registered mobile device.
<b>Signature:</b>
```typescript
sendChallenge(user: User): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| user | <code>User</code> | a name of the user |
<b>Returns:</b>
`Promise<void>`
a promise to send the challenge code.