UserInfo class

表示来自第三方身份提供方(如 Google 或 Facebook)的用户信息。

签名

export declare class UserInfo 

属性

属性 修饰符 类型 说明
displayName 字符串 关联的提供商的显示名称。
email 字符串 关联的提供商的电子邮件地址。
phoneNumber 字符串 关联的提供商的电话号码。
photo网址 字符串 已关联的提供方的照片网址。
providerId 字符串 关联的提供方 ID(例如 Google 提供方的 ID 为“google.com”)。
uid 字符串 关联的提供商的用户标识符。

方法

方法 修饰符 说明
toJSON() 返回此对象的可序列化 JSON 表示法。

UserInfo.displayName

关联的提供商的显示名称。

签名

readonly displayName: string;

UserInfo.email

关联的提供商的电子邮件地址。

签名

readonly email: string;

电话号码

关联的提供商的电话号码。

签名

readonly phoneNumber: string;

用户信息.photo网址

已关联的提供方的照片网址。

签名

readonly photoURL: string;

用户信息.提供方 ID

关联的提供方 ID(例如 Google 提供方的 ID 为“google.com”)。

签名

readonly providerId: string;

UserInfo.uid

关联的提供商的用户标识符。

签名

readonly uid: string;

UserInfo.toJSON()

返回此对象的可序列化 JSON 表示法。

签名

toJSON(): object;

返回

对象

此对象的可序列化 JSON 表示法。