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
/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License.
 */
 
import { CommonAuthorizationCodeRequest } from "@azure/msal-common/browser";
 
/**
 * AuthorizationCodeRequest: Request object passed by browser clients to exchange an authorization code for tokens.
 */
export type AuthorizationCodeRequest = Partial<
    Omit<CommonAuthorizationCodeRequest, "code" | "enableSpaAuthorizationCode">
> & {
    /**
     * The authorization_code that the user acquired in the first leg of the flow.
     */
    code?: string;
    /**
     * Identifier for the native account when integrating with native or brokered experiences.
     */
    nativeAccountId?: string;
    /**
     * Hostname for the Microsoft Cloud instance's Graph endpoint (for example, graph.microsoft.com).
     */
    cloudGraphHostName?: string;
    /**
     * Hostname for the Microsoft Graph endpoint when overriding defaults.
     */
    msGraphHost?: string;
    /**
     * Hostname for the Azure AD cloud instance that issued the authorization code.
     */
    cloudInstanceHostName?: string;
};