UNPKG

@azure/msal-browser

Version:
58 lines (57 loc) 1.68 kB
import { AuthorizationUrlRequest } from "@azure/msal-common"; /** * Constants */ export declare const BrowserConstants: { CACHE_LOCATION_LOCAL: string; CACHE_LOCATION_SESSION: string; INTERACTION_STATUS_KEY: string; INTERACTION_IN_PROGRESS_VALUE: string; INVALID_GRANT_ERROR: string; POPUP_WIDTH: number; POPUP_HEIGHT: number; POLL_INTERVAL_MS: number; MSAL_SKU: string; }; /** * HTTP Request types supported by MSAL. */ export declare enum HTTP_REQUEST_TYPE { GET = "GET", POST = "POST" } /** * Temporary cache keys for MSAL, deleted after any request. */ export declare enum TemporaryCacheKeys { AUTHORITY = "authority", ACQUIRE_TOKEN_ACCOUNT = "acquireToken.account", SESSION_STATE = "session.state", REQUEST_STATE = "request.state", NONCE_IDTOKEN = "nonce.id_token", ORIGIN_URI = "request.origin", RENEW_STATUS = "token.renew.status", URL_HASH = "urlHash", REQUEST_PARAMS = "request.params", SCOPES = "scopes" } /** * API Codes for Telemetry purposes. * Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs * 0-99 Silent Flow * 800-899 Auth Code Flow */ export declare enum ApiId { acquireTokenRedirect = 861, acquireTokenPopup = 862, ssoSilent = 863, acquireTokenSilent_authCode = 864, handleRedirectPromise = 865, acquireTokenSilent_silentFlow = 61 } export declare enum InteractionType { REDIRECT = "redirect", POPUP = "popup", SILENT = "silent" } export declare const DEFAULT_REQUEST: AuthorizationUrlRequest;