wangzhibo
2026-05-09 53418655c061ac26f66058253f39200aced1ab1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/**
 * Account properties returned by Native Platform e.g. WAM
 */
export type NativeAccountInfo = {
    id: string;
    properties: object;
    userName: string;
};
/**
 * Token response returned by Native Platform
 */
export type PlatformAuthResponse = {
    access_token: string;
    account: NativeAccountInfo;
    client_info: string;
    expires_in: number;
    id_token: string;
    properties: NativeResponseProperties;
    scope: string;
    state: string;
    shr?: string;
    extendedLifetimeToken?: boolean;
};
/**
 * Properties returned under "properties" of the NativeResponse
 */
export type NativeResponseProperties = {
    MATS?: string;
};
/**
 * The native token broker can optionally include additional information about operations it performs. If that data is returned, MSAL.js will include the following properties in the telemetry it collects.
 */
export type MATS = {
    is_cached?: number;
    broker_version?: string;
    account_join_on_start?: string;
    account_join_on_end?: string;
    device_join?: string;
    prompt_behavior?: string;
    api_error_code?: number;
    ui_visible?: boolean;
    silent_code?: number;
    silent_bi_sub_code?: number;
    silent_message?: string;
    silent_status?: number;
    http_status?: number;
    http_event_count?: number;
};
export type PlatformDOMTokenResponse = {
    isSuccess: boolean;
    state?: string;
    accessToken: string;
    expiresIn: number;
    account: NativeAccountInfo;
    clientInfo: string;
    idToken: string;
    scopes: string;
    proofOfPossessionPayload?: string;
    extendedLifetimeToken?: boolean;
    error: ErrorResult;
    properties?: Record<string, string>;
};
export type ErrorResult = {
    code: string;
    description?: string;
    errorCode: string;
    protocolError?: string;
    status: string;
    properties?: object;
};
//# sourceMappingURL=PlatformAuthResponse.d.ts.map