docs-devsite/auth.additionaluserinfo.md
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
A structure containing additional user information from a federated identity provider.
<b>Signature:</b>
export interface AdditionalUserInfo
| 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 | The username if the provider is GitHub or Twitter. |
Whether the user is new (created via sign-up) or existing (authenticated using sign-in).
<b>Signature:</b>
readonly isNewUser: boolean;
Map containing IDP-specific user data.
<b>Signature:</b>
readonly profile: Record<string, unknown> | null;
Identifier for the provider used to authenticate this user.
<b>Signature:</b>
readonly providerId: string | null;
The username if the provider is GitHub or Twitter.
<b>Signature:</b>
readonly username?: string | null;