Jump to top

UserInfo

interface

Represents a collection of standard profile information for a user. Can be used to expose profile information returned by an identity provider, such as Google Sign-In or Facebook Login.

TODO @salakar: isEmailVerified

Example
const user = firebase.auth().currentUser;

user.providerData.forEach((userInfo) => {
  console.log('User info for provider: ', userInfo);
});

Properties

displayName

</>

Returns the user's display name, if available.

displayName: undefined | string;

email

</>

Returns the email address corresponding to the user's account in the specified provider, if available.

email: undefined | string;

phoneNumber

</>

The phone number normalized based on the E.164 standard (e.g. +16505550101) for the current user. This is null if the user has no phone credential linked to the account.

phoneNumber: undefined | string;

photoURL

</>

Returns a url to the user's profile picture, if available.

photoURL: undefined | string;

providerId

</>

Returns the unique identifier of the provider type that this instance corresponds to.

providerId: string;

tenantId

</>

Returns a string representing the multi-tenant tenant id. This is null if the user is not associated with a tenant.

tenantId: undefined | string;

uid

</>

Returns a user identifier as specified by the authentication provider.

uid: string;