voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
24 lines (15 loc) • 1.06 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/auth](./auth.md) > [AdditionalUserInfo](./auth.additionaluserinfo.md)
## AdditionalUserInfo interface
A structure containing additional user information from a federated identity provider.
<b>Signature:</b>
```typescript
export interface AdditionalUserInfo
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [isNewUser](./auth.additionaluserinfo.isnewuser.md) | boolean | Whether the user is new (created via sign-up) or existing (authenticated using sign-in). |
| [profile](./auth.additionaluserinfo.profile.md) | Record<string, unknown> \| null | Map containing IDP-specific user data. |
| [providerId](./auth.additionaluserinfo.providerid.md) | string \| null | Identifier for the provider used to authenticate this user. |
| [username?](./auth.additionaluserinfo.username.md) | string \| null | <i>(Optional)</i> The username if the provider is GitHub or Twitter. |