Returns whether the user is new or existing.
OptionalprofileReturns an Object containing IDP-specific user data if the provider is one of Facebook, GitHub, Google, Twitter, Microsoft, or Yahoo.
Returns the provider ID for specifying which provider the information in profile is for.
OptionalusernameReturns the username if the provider is GitHub or Twitter.
A structure containing additional user information from a federated identity provider via UserCredential.
Example
Error
auth/operation-not-allowed Thrown if anonymous accounts are not enabled. Enable anonymous accounts in the Firebase Console, under the Auth tab.