AccountInfo type
Account object with the following signature:
- homeAccountId - Home account identifier for this account object
- environment - Entity which issued the token represented by the domain of the issuer (e.g. login.microsoftonline.com)
- tenantId - Full tenant or organizational id that this account belongs to
- username - preferred_username claim of the id_token that represents this account
- localAccountId - Local, tenant-specific account identifer for this account object, usually used in legacy cases
- name - Full name for the account, including given name and family name
- idToken - raw ID token
- idTokenClaims - Object contains claims from ID token
- nativeAccountId - The user's native account ID
- tenantProfiles - Map of tenant profile objects for each tenant that the account has authenticated with in the browser
type AccountInfo = {
authorityType?: string
environment: string
homeAccountId: string
idToken?: string
idTokenClaims?: TokenClaims & {
[key: string]: string | number | string[] | object | undefined | unknown
}
localAccountId: string
name?: string
nativeAccountId?: string
tenantId: string
tenantProfiles?: Map<string, TenantProfile>
username: string
}