Home > @firebase/auth > linkWithPhoneNumber
linkWithPhoneNumber() function
Links the user account with the given phone number.
Signature:
export declare function linkWithPhoneNumber(user: User, phoneNumber: string, appVerifier: ApplicationVerifier): Promise<ConfirmationResult>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| user | User | The user. |
| phoneNumber | string | The user's phone number in E.164 format (e.g. +16505550101). |
| appVerifier | ApplicationVerifier | The ApplicationVerifier. |
Returns:
Promise<ConfirmationResult>