@azure/msal-browser
Version:
Microsoft Authentication Library for js
40 lines (38 loc) • 1.4 kB
JavaScript
/*! @azure/msal-browser v5.25.0 2026-10-06 */
;
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/**
* Unified error taxonomy shared by NAA and PWB.
*
* Each code maps to exactly one of the four base MSAL error classes
* (`AuthError`, `ClientAuthError`, `ServerError`,
* `InteractionRequiredAuthError`) via `toAuthError` in
* `./WebBrokerBridgeErrorMap`.
*/
const WebBrokerBridgeErrorCode = {
/* Interaction / auth outcomes */
UserInteractionRequired: "user_interaction_required",
UserCanceled: "user_canceled",
/* Environment / connectivity */
NoNetwork: "no_network",
AccountUnavailable: "account_unavailable",
BridgeDisabled: "bridge_disabled",
BridgeUnavailable: "bridge_unavailable",
/* Server-side outcomes */
TransientError: "transient_error",
PersistentError: "persistent_error",
/* Broker-channel failures */
BridgeTimeout: "bridge_timeout",
BridgeHandshakeFailed: "bridge_handshake_failed",
BridgeConnectionReset: "bridge_connection_reset",
BridgeResponseInvalid: "bridge_response_invalid",
PopupWillRedirect: "popup_will_redirect",
ShrGenerationError: "shr_generation_error",
/* Fallback */
Unknown: "unknown",
};
export { WebBrokerBridgeErrorCode };
//# sourceMappingURL=WebBrokerBridgeError.mjs.map