UserInfo class

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

Signature:

export declare class UserInfo 

Properties

Property Modifiers Type Description
displayName string The display name for the linked provider.
email 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:

readonly displayName: string;

UserInfo.email

The email for the linked provider.

Signature:

readonly email: string;

UserInfo.phoneNumber

The phone number for the linked provider.

Signature:

readonly phoneNumber: string;

UserInfo.photoURL

The photo URL for the linked provider.

Signature:

readonly photoURL: string;

UserInfo.providerId

The linked provider ID (for example, "google.com" for the Google provider).

Signature:

readonly providerId: string;

UserInfo.uid

The user identifier for the linked provider.

Signature:

readonly uid: string;

UserInfo.toJSON()

Returns a JSON-serializable representation of this object.

Signature:

toJSON(): object;

Returns:

object

A JSON-serializable representation of this object.