用户个人资料信息,仅对 Firebase 项目的应用可见。
签名:
export interface UserInfo
特性
财产 | 类型 | 描述 |
---|---|---|
显示名称 | 字符串|无效的 | 用户的显示名称。 |
电子邮件 | 字符串|无效的 | 用户的电子邮件。 |
电话号码 | 字符串|无效的 | 根据 E.164 标准(例如 +16505550101)为用户标准化的电话号码。 |
照片网址 | 字符串|无效的 | 用户的个人资料照片 URL。 |
提供者ID | 细绳 | 提供者用于验证用户身份。 |
uid | 细绳 | 用户的唯一 ID,范围仅限于项目。 |
用户信息.显示名称
用户的显示名称。
签名:
readonly displayName: string | null;
用户信息.email
用户的电子邮件。
签名:
readonly email: string | null;
用户信息.电话号码
根据 E.164 标准(例如 +16505550101)为用户标准化的电话号码。
如果用户没有与该帐户关联的电话凭证,则该值为空。
签名:
readonly phoneNumber: string | null;
用户信息.photoURL
用户的个人资料照片 URL。
签名:
readonly photoURL: string | null;
用户信息.providerId
提供者用于验证用户身份。
签名:
readonly providerId: string;
用户信息.uid
用户的唯一 ID,范围仅限于项目。
签名:
readonly uid: string;