The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

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.