UserInfo interface

User profile information, visible only to the Firebase project's apps.

Signature:

exportinterfaceUserInfo

Properties

PropertyTypeDescription
displayNamestring | nullThe display name of the user.
emailstring | nullThe email of the user.
phoneNumberstring | nullThe phone number normalized based on the E.164 standard (e.g. +16505550101) for the user.
photoURLstring | nullThe profile photo URL of the user.
providerIdstringThe provider used to authenticate the user.
uidstringThe user's unique ID, scoped to the project.

UserInfo.displayName

The display name of the user.

Signature:

readonlydisplayName:string|null;

UserInfo.email

The email of the user.

Signature:

readonlyemail:string|null;

UserInfo.phoneNumber

The phone number normalized based on the E.164 standard (e.g. +16505550101) for the user.

This is null if the user has no phone credential linked to the account.

Signature:

readonlyphoneNumber:string|null;

UserInfo.photoURL

The profile photo URL of the user.

Signature:

readonlyphotoURL:string|null;

UserInfo.providerId

The provider used to authenticate the user.

Signature:

readonlyproviderId:string;

UserInfo.uid

The user's unique ID, scoped to the project.

Signature:

readonlyuid:string;

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-22 UTC.