Link With Popup
Use the linkWithPopup
method to link a new OAuth credential to the existing user account using a popup window for authentication.
Method
Parameters
oAuthId (
String
): The identifier of the OAuth provider (e.g., Google, Facebook).token (
String
): The OAuth token used for authentication.
Return
UserCredential: Returns the
UserCredential
object containing details about the user and credential after the linking process.
This method allows you to link additional OAuth credentials (like Google or Facebook) to an existing Firebase user account via a popup window.
Last updated