<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@digitalpersona/authentication](./authentication.md) &gt; [SmsOtpAuth](./authentication.smsotpauth.md) &gt; [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.

