UserInfo class Stay organized with collections Save and categorize content based on your preferences.
Represents a user's info from a third-party identity provider such as Google or Facebook.
Signature:
exportdeclareclassUserInfoProperties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| displayName | string | The display name for the linked provider. | |
| string | The email for the linked provider. | ||
| phoneNumber | string | The phone number for the linked provider. | |
| photoURL | string | The photo URL for the linked provider. | |
| providerId | string | The linked provider ID (for example, "google.com" for the Google provider). | |
| uid | string | The user identifier for the linked provider. |
Methods
| Method | Modifiers | Description |
|---|---|---|
| toJSON() | Returns a JSON-serializable representation of this object. |
UserInfo.displayName
The display name for the linked provider.
Signature:
readonlydisplayName:string;UserInfo.email
The email for the linked provider.
Signature:
readonlyemail:string;UserInfo.phoneNumber
The phone number for the linked provider.
Signature:
readonlyphoneNumber:string;UserInfo.photoURL
The photo URL for the linked provider.
Signature:
readonlyphotoURL:string;UserInfo.providerId
The linked provider ID (for example, "google.com" for the Google provider).
Signature:
readonlyproviderId:string;UserInfo.uid
The user identifier for the linked provider.
Signature:
readonlyuid:string;UserInfo.toJSON()
Returns a JSON-serializable representation of this object.
Signature:
toJSON():object;Returns:
object
A JSON-serializable representation of this object.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-29 UTC.