AccountInfo type
具有以下签名的 Account 对象:
- homeAccountId - 此帐户对象的主页帐户标识符
- 环境 - 颁发颁发者域所表示的令牌的实体(例如 login.microsoftonline.com)
- tenantId - 此帐户所属的完整租户或组织 ID
- username - preferred_username表示此帐户的id_token声明
- localAccountId - 此帐户对象的本地特定于租户的帐户标识器,通常用于旧用例
- name - 帐户的全名,包括给定名称和姓氏
- idToken - 原始 ID 令牌
- idTokenClaims - 对象包含来自 ID 令牌的声明
- nativeAccountId - 用户的本机帐户 ID
- tenantProfiles - 映射帐户在浏览器中通过身份验证的每个租户的租户配置文件对象
- dataBoundary - 从 clientInfo 提取的数据边界
type AccountInfo = {
authorityType?: string
dataBoundary?: DataBoundary
environment: string
homeAccountId: string
idToken?: string
idTokenClaims?: TokenClaims & {
[key: string]: string | number | string[] | object | undefined | unknown
}
localAccountId: string
loginHint?: string
name?: string
nativeAccountId?: string
tenantId: string
tenantProfiles?: Map<string, TenantProfile>
username: string
}