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