包含來自聯合身分提供者的附加使用者資訊的結構。
簽名:
export interface AdditionalUserInfo
特性
財產 | 類型 | 描述 |
---|---|---|
是新用戶 | 布林值 | 用戶是新用戶(透過註冊創建)還是現有用戶(透過登入進行身份驗證)。 |
輪廓 | 記錄<字串,未知> |無效的 | 包含 IDP 特定使用者資料的對應。 |
提供者ID | 字串|無效的 | 用於驗證該使用者身分的提供者的識別碼。 |
使用者名稱 | 字串|無效的 | 如果提供者是 GitHub 或 Twitter,則為使用者名稱。 |
附加使用者資訊.isNewUser
用戶是新用戶(透過註冊創建)還是現有用戶(透過登入進行身份驗證)。
簽名:
readonly isNewUser: boolean;
附加使用者資訊.profile
包含 IDP 特定使用者資料的對應。
簽名:
readonly profile: Record<string, unknown> | null;
附加使用者資訊.providerId
用於驗證該使用者身分的提供者的識別碼。
簽名:
readonly providerId: string | null;
附加用戶資訊.用戶名
如果提供者是 GitHub 或 Twitter,則為使用者名稱。
簽名:
readonly username?: string | null;