使用者個人資料訊息,僅對 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;