<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [linkWithPhoneNumber](./auth.linkwithphonenumber.md)

## linkWithPhoneNumber() function

Links the user account with the given phone number.

<b>Signature:</b>

```typescript
export declare function linkWithPhoneNumber(user: User, phoneNumber: string, appVerifier: ApplicationVerifier): Promise<ConfirmationResult>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  user | [User](./auth.user.md) | The user. |
|  phoneNumber | string | The user's phone number in E.164 format (e.g. +16505550101). |
|  appVerifier | [ApplicationVerifier](./auth.applicationverifier.md) | The [ApplicationVerifier](./auth.applicationverifier.md)<!-- -->. |

<b>Returns:</b>

Promise&lt;[ConfirmationResult](./auth.confirmationresult.md)<!-- -->&gt;

