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
final UserCredential userCredential = await FirebaseApp.instance.linkWithPopup(oAuthId, token);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 - UserCredentialobject 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
