> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cdp.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# signInWithSms

```ts theme={null}
function signInWithSms(options: SignInWithSmsOptions): Promise<SignInWithSmsResult>;
```

Initiates the sign in flow with a phone number via SMS.

## Parameters

| Parameter | Type | Description |
| - | - | - |
| `options` | [`SignInWithSmsOptions`](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-core/Type-Aliases/SignInWithSmsOptions) | The options for the sign in. |

## Returns

`Promise`\<[`SignInWithSmsResult`](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-core/Type-Aliases/SignInWithSmsResult)>

The result of the sign in.

## Example

```typescript lines theme={null}
const result = await signInWithSms({
  phoneNumber: "+14155552671"
});
```
