UserInfo class

Represents a user's info from a third-party identity provider such as Google or Facebook.

Signature:

exportdeclareclassUserInfo

Properties

PropertyModifiersTypeDescription
displayNamestringThe display name for the linked provider.
emailstringThe email for the linked provider.
phoneNumberstringThe phone number for the linked provider.
photoURLstringThe photo URL for the linked provider.
providerIdstringThe linked provider ID (for example, "google.com" for the Google provider).
uidstringThe user identifier for the linked provider.

Methods

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