Home > @firebase/auth > linkWithCredential
linkWithCredential() function
Links the user account with the given credentials.
Signature:
export declare function linkWithCredential(user: User, credential: AuthCredential): Promise<UserCredential>;
Parameters
Parameter | Type | Description |
---|---|---|
user | User | The user. |
credential | AuthCredential | The auth credential. |
Returns:
Promise<UserCredential>
Description
An AuthProvider can be used to generate the credential.