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 > AdditionalUserInfo

AdditionalUserInfo interface

A structure containing additional user information from a federated identity provider.

Signature:

export interface AdditionalUserInfo 

Properties

Property Type Description
isNewUser boolean Whether the user is new (created via sign-up) or existing (authenticated using sign-in).
profile Record<string, unknown> | null Map containing IDP-specific user data.
providerId string | null Identifier for the provider used to authenticate this user.
username? string | null (Optional) The username if the provider is GitHub or Twitter.