1 | import { ClientInfo } from "./ClientInfo";
|
2 | import { IdToken } from "./IdToken";
|
3 | import { StringDict } from "./MsalTypes";
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare class Account {
|
14 | accountIdentifier: string;
|
15 | homeAccountIdentifier: string;
|
16 | userName: string;
|
17 | name: string;
|
18 | idToken: StringDict;
|
19 | idTokenClaims: StringDict;
|
20 | sid: string;
|
21 | environment: string;
|
22 | |
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | constructor(accountIdentifier: string, homeAccountIdentifier: string, userName: string, name: string, idTokenClaims: StringDict, sid: string, environment: string);
|
33 | /**
|
34 | * @hidden
|
35 | * @param idToken
|
36 | * @param clientInfo
|
37 | */
|
38 | static createAccount(idToken: IdToken, clientInfo: ClientInfo): Account;
|
39 | /**
|
40 | * Utils function to compare two Account objects - used to check if the same user account is logged in
|
41 | *
|
42 | * @param a1: Account object
|
43 | * @param a2: Account object
|
44 | */
|
45 | static compareAccounts(a1: Account, a2: Account): boolean;
|
46 | }
|