import type { AccessToken } from "@azure/core-auth"; import type { AuthenticationRecord } from "../types.js"; import type { CredentialFlowGetTokenOptions } from "../credentials.js"; import type { CredentialLogger } from "../../util/logging.js"; /** * Union of the constructor parameters that all MSAL flow types take. * @internal */ export interface MsalFlowOptions { logger: CredentialLogger; clientId?: string; tenantId?: string; authorityHost?: string; authenticationRecord?: AuthenticationRecord; disableAutomaticAuthentication?: boolean; disableInstanceDiscovery?: boolean; getAssertion?: () => Promise; enableMsaPassthrough?: boolean; } /** * The common methods we use to work with the MSAL flows. * @internal */ export interface MsalFlow { /** * Allows for any setup before any request is processed. */ init(options?: CredentialFlowGetTokenOptions): Promise; /** * Tries to load the active account, either from memory or from MSAL. */ getActiveAccount(): Promise; /** * Tries to retrieve the token silently using MSAL. */ getTokenSilent(scopes?: string[], options?: CredentialFlowGetTokenOptions): Promise; /** * Calls to the implementation's doGetToken method. */ getToken(scopes?: string[], options?: CredentialFlowGetTokenOptions): Promise; } //# sourceMappingURL=flows.d.ts.map