Skip to content

Latest commit

 

History

History
92 lines (61 loc) · 2.08 KB

auth.userinfo.md

File metadata and controls

92 lines (61 loc) · 2.08 KB

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

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:

readonly displayName: string|null;

UserInfo.email

The email of the user.

Signature:

readonly email: 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:

readonly phoneNumber: string|null;

UserInfo.photoURL

The profile photo URL of the user.

Signature:

readonly photoURL: string|null;

UserInfo.providerId

The provider used to authenticate the user.

Signature:

readonly providerId: string;

UserInfo.uid

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

Signature:

readonly uid: string;
close