@azure/msal-browser 5.6.2 → 5.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/IPublicClientApplication.mjs +1 -1
- package/dist/app/PublicClientApplication.mjs +1 -1
- package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/cache/AccountManager.mjs +1 -1
- package/dist/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/cache/BrowserCacheManager.mjs +1 -1
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/CacheKeys.mjs +1 -1
- package/dist/cache/CookieStorage.mjs +1 -1
- package/dist/cache/DatabaseStorage.mjs +1 -1
- package/dist/cache/EncryptedData.mjs +1 -1
- package/dist/cache/LocalStorage.mjs +1 -1
- package/dist/cache/MemoryStorage.mjs +1 -1
- package/dist/cache/SessionStorage.mjs +1 -1
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.mjs +9 -9
- package/dist/cache/TokenCache.mjs.map +1 -1
- package/dist/config/Configuration.d.ts +13 -1
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +9 -2
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/controllers/NestedAppAuthController.mjs +1 -1
- package/dist/controllers/StandardController.d.ts +4 -2
- package/dist/controllers/StandardController.d.ts.map +1 -1
- package/dist/controllers/StandardController.mjs +56 -19
- package/dist/controllers/StandardController.mjs.map +1 -1
- package/dist/crypto/BrowserCrypto.mjs +1 -1
- package/dist/crypto/CryptoOps.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/SignedHttpRequest.mjs +1 -1
- package/dist/custom-auth-path/app/PublicClientApplication.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
- package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
- package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
- package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +1 -1
- package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
- package/dist/custom-auth-path/cache/CacheKeys.mjs +1 -1
- package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/EncryptedData.mjs +1 -1
- package/dist/custom-auth-path/cache/LocalStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/MemoryStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
- package/dist/custom-auth-path/cache/TokenCache.d.ts.map +1 -1
- package/dist/custom-auth-path/config/Configuration.d.ts +13 -1
- package/dist/custom-auth-path/config/Configuration.d.ts.map +1 -1
- package/dist/custom-auth-path/config/Configuration.mjs +9 -2
- package/dist/custom-auth-path/config/Configuration.mjs.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.d.ts +4 -2
- package/dist/custom-auth-path/controllers/StandardController.d.ts.map +1 -1
- package/dist/custom-auth-path/controllers/StandardController.mjs +56 -19
- package/dist/custom-auth-path/controllers/StandardController.mjs.map +1 -1
- package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
- package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
- package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/index.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
- package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
- package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
- package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/error/NativeAuthError.mjs +1 -1
- package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/custom-auth-path/event/EventHandler.mjs +1 -1
- package/dist/custom-auth-path/event/EventType.mjs +1 -1
- package/dist/custom-auth-path/index.d.ts +1 -1
- package/dist/custom-auth-path/index.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.d.ts +10 -10
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +8 -8
- package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +3 -3
- package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/custom-auth-path/log-strings-mapping.json +23 -3
- package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
- package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
- package/dist/custom-auth-path/packageMetadata.mjs +2 -2
- package/dist/custom-auth-path/protocol/Authorize.mjs +1 -1
- package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
- package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
- package/dist/custom-auth-path/telemetry/BrowserPerformanceClient.d.ts +1 -0
- package/dist/custom-auth-path/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.d.ts +5 -0
- package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
- package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.mjs +8 -3
- package/dist/custom-auth-path/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
- package/dist/custom-auth-path/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/custom-auth-path/utils/BrowserUtils.d.ts +2 -2
- package/dist/custom-auth-path/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/custom-auth-path/utils/BrowserUtils.mjs +27 -3
- package/dist/custom-auth-path/utils/BrowserUtils.mjs.map +1 -1
- package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
- package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
- package/dist/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/dist/encode/Base64Decode.mjs +1 -1
- package/dist/encode/Base64Encode.mjs +1 -1
- package/dist/error/BrowserAuthError.mjs +1 -1
- package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
- package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
- package/dist/error/NativeAuthError.mjs +1 -1
- package/dist/error/NativeAuthErrorCodes.mjs +1 -1
- package/dist/error/NestedAppAuthError.mjs +1 -1
- package/dist/event/EventHandler.mjs +1 -1
- package/dist/event/EventMessage.mjs +1 -1
- package/dist/event/EventType.mjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.d.ts +10 -10
- package/dist/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs +8 -8
- package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
- package/dist/interaction_client/PopupClient.mjs +1 -1
- package/dist/interaction_client/RedirectClient.mjs +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
- package/dist/interaction_client/SilentCacheClient.mjs +1 -1
- package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentIframeClient.mjs +3 -3
- package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
- package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
- package/dist/interaction_handler/InteractionHandler.mjs +1 -1
- package/dist/interaction_handler/SilentHandler.mjs +1 -1
- package/dist/log-strings-mapping.json +31 -11
- package/dist/naa/BridgeError.mjs +1 -1
- package/dist/naa/BridgeProxy.mjs +1 -1
- package/dist/naa/BridgeStatusCode.mjs +1 -1
- package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
- package/dist/navigation/NavigationClient.mjs +1 -1
- package/dist/network/FetchClient.mjs +1 -1
- package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
- package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
- package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/redirect-bridge/cache/CacheKeys.mjs +1 -1
- package/dist/redirect-bridge/cache/TokenCache.d.ts.map +1 -1
- package/dist/redirect-bridge/config/Configuration.d.ts +13 -1
- package/dist/redirect-bridge/config/Configuration.d.ts.map +1 -1
- package/dist/redirect-bridge/config/Configuration.mjs +1 -1
- package/dist/redirect-bridge/controllers/StandardController.d.ts +4 -2
- package/dist/redirect-bridge/controllers/StandardController.d.ts.map +1 -1
- package/dist/redirect-bridge/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/dist/redirect-bridge/encode/Base64Decode.mjs +1 -1
- package/dist/redirect-bridge/error/BrowserAuthError.mjs +1 -1
- package/dist/redirect-bridge/error/BrowserAuthErrorCodes.mjs +1 -1
- package/dist/redirect-bridge/index.d.ts +1 -1
- package/dist/redirect-bridge/index.d.ts.map +1 -1
- package/dist/redirect-bridge/interaction_client/PlatformAuthInteractionClient.d.ts +10 -10
- package/dist/redirect-bridge/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/dist/redirect-bridge/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/dist/redirect-bridge/navigation/NavigationClient.mjs +1 -1
- package/dist/redirect-bridge/packageMetadata.d.ts +1 -1
- package/dist/redirect-bridge/redirect_bridge/index.mjs +1 -1
- package/dist/redirect-bridge/telemetry/BrowserPerformanceClient.d.ts +1 -0
- package/dist/redirect-bridge/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/dist/redirect-bridge/telemetry/BrowserPerformanceEvents.d.ts +5 -0
- package/dist/redirect-bridge/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
- package/dist/redirect-bridge/utils/BrowserConstants.mjs +1 -1
- package/dist/redirect-bridge/utils/BrowserUtils.d.ts +2 -2
- package/dist/redirect-bridge/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/redirect-bridge/utils/BrowserUtils.mjs +1 -1
- package/dist/redirect-bridge/utils/BrowserUtils.mjs.map +1 -1
- package/dist/request/RequestHelpers.mjs +1 -1
- package/dist/response/ResponseHandler.mjs +1 -1
- package/dist/telemetry/BrowserPerformanceClient.d.ts +1 -0
- package/dist/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs +6 -1
- package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.d.ts +5 -0
- package/dist/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceEvents.mjs +8 -3
- package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
- package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
- package/dist/utils/BrowserConstants.mjs +1 -1
- package/dist/utils/BrowserProtocolUtils.mjs +1 -1
- package/dist/utils/BrowserUtils.d.ts +2 -2
- package/dist/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/utils/BrowserUtils.mjs +27 -3
- package/dist/utils/BrowserUtils.mjs.map +1 -1
- package/dist/utils/Helpers.mjs +1 -1
- package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
- package/lib/custom-auth-path/log-strings-mapping.json +23 -3
- package/lib/custom-auth-path/msal-custom-auth.cjs +620 -541
- package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
- package/lib/custom-auth-path/types/cache/TokenCache.d.ts.map +1 -1
- package/lib/custom-auth-path/types/config/Configuration.d.ts +13 -1
- package/lib/custom-auth-path/types/config/Configuration.d.ts.map +1 -1
- package/lib/custom-auth-path/types/controllers/StandardController.d.ts +4 -2
- package/lib/custom-auth-path/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/lib/custom-auth-path/types/index.d.ts +1 -1
- package/lib/custom-auth-path/types/index.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/PlatformAuthInteractionClient.d.ts +10 -10
- package/lib/custom-auth-path/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceClient.d.ts +1 -0
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceEvents.d.ts +5 -0
- package/lib/custom-auth-path/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
- package/lib/custom-auth-path/types/utils/BrowserUtils.d.ts +2 -2
- package/lib/custom-auth-path/types/utils/BrowserUtils.d.ts.map +1 -1
- package/lib/log-strings-mapping.json +31 -11
- package/lib/msal-browser.cjs +768 -683
- package/lib/msal-browser.cjs.map +1 -1
- package/lib/msal-browser.js +768 -683
- package/lib/msal-browser.js.map +1 -1
- package/lib/msal-browser.min.js +2 -2
- package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
- package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
- package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
- package/lib/types/cache/TokenCache.d.ts.map +1 -1
- package/lib/types/config/Configuration.d.ts +13 -1
- package/lib/types/config/Configuration.d.ts.map +1 -1
- package/lib/types/controllers/StandardController.d.ts +4 -2
- package/lib/types/controllers/StandardController.d.ts.map +1 -1
- package/lib/types/custom_auth/CustomAuthConstants.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/interaction_client/PlatformAuthInteractionClient.d.ts +10 -10
- package/lib/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
- package/lib/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/telemetry/BrowserPerformanceClient.d.ts +1 -0
- package/lib/types/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/lib/types/telemetry/BrowserPerformanceEvents.d.ts +5 -0
- package/lib/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
- package/lib/types/utils/BrowserUtils.d.ts +2 -2
- package/lib/types/utils/BrowserUtils.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/cache/TokenCache.ts +27 -24
- package/src/config/Configuration.ts +22 -0
- package/src/controllers/StandardController.ts +84 -35
- package/src/index.ts +1 -0
- package/src/interaction_client/PlatformAuthInteractionClient.ts +55 -53
- package/src/interaction_client/SilentIframeClient.ts +4 -2
- package/src/packageMetadata.ts +1 -1
- package/src/telemetry/BrowserPerformanceClient.ts +6 -0
- package/src/telemetry/BrowserPerformanceEvents.ts +6 -0
- package/src/utils/BrowserUtils.ts +36 -4
|
@@ -131,4 +131,9 @@ export declare const LoadAccount = "loadAccount";
|
|
|
131
131
|
export declare const LoadIdToken = "loadIdToken";
|
|
132
132
|
export declare const LoadAccessToken = "loadAccessToken";
|
|
133
133
|
export declare const LoadRefreshToken = "loadRefreshToken";
|
|
134
|
+
/**
|
|
135
|
+
* Background telemetry measurement that tracks whether a late bridge response
|
|
136
|
+
* arrives after the iframe timeout has already fired.
|
|
137
|
+
*/
|
|
138
|
+
export declare const WaitForBridgeLateResponse = "waitForBridgeLateResponse";
|
|
134
139
|
//# sourceMappingURL=BrowserPerformanceEvents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserPerformanceEvents.d.ts","sourceRoot":"","sources":["../../../src/telemetry/BrowserPerformanceEvents.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,gCAAgC,qCACP,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,6BAA6B,kCAAkC,CAAC;AAE7E;;;GAGG;AACH,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAE/E,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,+BAA+B,oCACP,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,+CAA+C,oDACP,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,mCAAmC,wCACP,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,mCAAmC,wCACP,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,4CAA4C,iDACP,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AAEjE,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD;;GAEG;AACH,eAAO,MAAM,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eAAO,MAAM,6BAA6B,kCAAkC,CAAC;AAC7E,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AACnE,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAEvD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,WAAW,gBAAgB,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,iCAAiC,sCACP,CAAC;AACxC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAEvD,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,yBAAyB,8BAA8B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { invoke, invokeAsync, RequestParameterBuilder, ICrypto, IPerformanceClient, Logger, CommonAuthorizationUrlRequest, CommonEndSessionRequest } from "@azure/msal-common/browser";
|
|
2
|
-
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
2
|
+
import { BrowserConfiguration, BrowserExperimentalOptions } from "../config/Configuration.js";
|
|
3
3
|
/**
|
|
4
4
|
* Extracts and parses the authentication response from URL (hash and/or query string).
|
|
5
5
|
* This is a shared utility used across multiple components in msal-browser.
|
|
@@ -49,7 +49,7 @@ export declare function isInPopup(): boolean;
|
|
|
49
49
|
* any pending popup interaction before starting a new one.
|
|
50
50
|
*/
|
|
51
51
|
export declare function cancelPendingBridgeResponse(logger: Logger, correlationId: string): void;
|
|
52
|
-
export declare function waitForBridgeResponse(timeoutMs: number, logger: Logger, browserCrypto: ICrypto, request: CommonAuthorizationUrlRequest | CommonEndSessionRequest, performanceClient: IPerformanceClient): Promise<string>;
|
|
52
|
+
export declare function waitForBridgeResponse(timeoutMs: number, logger: Logger, browserCrypto: ICrypto, request: CommonAuthorizationUrlRequest | CommonEndSessionRequest, performanceClient: IPerformanceClient, experimentalConfig?: BrowserExperimentalOptions): Promise<string>;
|
|
53
53
|
/**
|
|
54
54
|
* Returns current window URL as redirect uri
|
|
55
55
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/BrowserUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,MAAM,EACN,WAAW,EAEX,uBAAuB,EACvB,OAAO,EACP,kBAAkB,
|
|
1
|
+
{"version":3,"file":"BrowserUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/BrowserUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,MAAM,EACN,WAAW,EAEX,uBAAuB,EACvB,OAAO,EACP,kBAAkB,EAElB,MAAM,EACN,6BAA6B,EAC7B,uBAAuB,EAE1B,MAAM,4BAA4B,CAAC;AAYpC,OAAO,EACH,oBAAoB,EACpB,0BAA0B,EAC7B,MAAM,4BAA4B,CAAC;AAIpC;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,IAAI;IACxC,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,O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AAE,OAAO,GAAG,IAAI,CAYzD;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAClC,WAAW,EAAE,OAAO,EACpB,MAAM,EAAE,oBAAoB,GAC7B,IAAI,CASN;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAalD;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAEnC;AAED,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,eAAO,MAAM,6BAA6B,8DACe,CAAC"}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
|
|
12
12
|
},
|
|
13
|
-
"version": "5.6.
|
|
13
|
+
"version": "5.6.3",
|
|
14
14
|
"description": "Microsoft Authentication Library for js",
|
|
15
15
|
"keywords": [
|
|
16
16
|
"implicit",
|
|
@@ -128,6 +128,6 @@
|
|
|
128
128
|
"typescript": "^4.9.5"
|
|
129
129
|
},
|
|
130
130
|
"dependencies": {
|
|
131
|
-
"@azure/msal-common": "16.4.
|
|
131
|
+
"@azure/msal-common": "16.4.1"
|
|
132
132
|
}
|
|
133
133
|
}
|
package/src/cache/TokenCache.ts
CHANGED
|
@@ -5,44 +5,44 @@
|
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
AccessTokenEntity,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Logger,
|
|
11
|
-
ScopeSet,
|
|
8
|
+
AccountEntity,
|
|
9
|
+
AccountEntityUtils,
|
|
12
10
|
Authority,
|
|
13
11
|
AuthorityFactory,
|
|
14
12
|
AuthorityOptions,
|
|
15
|
-
ExternalTokenResponse,
|
|
16
|
-
AccountEntity,
|
|
17
13
|
AuthToken,
|
|
18
|
-
RefreshTokenEntity,
|
|
19
|
-
CacheRecord,
|
|
20
|
-
TokenClaims,
|
|
21
|
-
CacheHelpers,
|
|
22
14
|
buildAccountToCache,
|
|
23
|
-
TimeUtils,
|
|
24
|
-
AccountEntityUtils,
|
|
25
15
|
buildStaticAuthorityOptions,
|
|
16
|
+
CacheHelpers,
|
|
17
|
+
CacheRecord,
|
|
18
|
+
ExternalTokenResponse,
|
|
19
|
+
ICrypto,
|
|
20
|
+
IdTokenEntity,
|
|
26
21
|
invokeAsync,
|
|
27
22
|
IPerformanceClient,
|
|
23
|
+
Logger,
|
|
24
|
+
RefreshTokenEntity,
|
|
25
|
+
ScopeSet,
|
|
28
26
|
StubPerformanceClient,
|
|
27
|
+
TimeUtils,
|
|
28
|
+
TokenClaims,
|
|
29
29
|
} from "@azure/msal-common/browser";
|
|
30
30
|
import { buildConfiguration, Configuration } from "../config/Configuration.js";
|
|
31
|
-
import
|
|
32
|
-
import {
|
|
31
|
+
import * as BrowserCrypto from "../crypto/BrowserCrypto.js";
|
|
32
|
+
import { CryptoOps } from "../crypto/CryptoOps.js";
|
|
33
|
+
import { base64Decode } from "../encode/Base64Decode.js";
|
|
33
34
|
import {
|
|
34
|
-
createBrowserAuthError,
|
|
35
35
|
BrowserAuthErrorCodes,
|
|
36
|
+
createBrowserAuthError,
|
|
36
37
|
} from "../error/BrowserAuthError.js";
|
|
37
|
-
import type { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
38
|
-
import { base64Decode } from "../encode/Base64Decode.js";
|
|
39
|
-
import * as BrowserCrypto from "../crypto/BrowserCrypto.js";
|
|
40
|
-
import { CryptoOps } from "../crypto/CryptoOps.js";
|
|
41
38
|
import { EventHandler } from "../event/EventHandler.js";
|
|
42
|
-
import
|
|
43
|
-
import
|
|
39
|
+
import type { SilentRequest } from "../request/SilentRequest.js";
|
|
40
|
+
import type { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
44
41
|
import * as BrowserPerformanceEvents from "../telemetry/BrowserPerformanceEvents.js";
|
|
42
|
+
import * as BrowserRootPerformanceEvents from "../telemetry/BrowserRootPerformanceEvents.js";
|
|
45
43
|
import { ApiId } from "../utils/BrowserConstants.js";
|
|
44
|
+
import * as BrowserUtils from "../utils/BrowserUtils.js";
|
|
45
|
+
import { BrowserCacheManager } from "./BrowserCacheManager.js";
|
|
46
46
|
|
|
47
47
|
export type LoadTokenOptions = {
|
|
48
48
|
clientInfo?: string;
|
|
@@ -132,7 +132,8 @@ export async function loadExternalTokens(
|
|
|
132
132
|
logger,
|
|
133
133
|
cryptoOps,
|
|
134
134
|
authority,
|
|
135
|
-
idTokenClaims
|
|
135
|
+
idTokenClaims,
|
|
136
|
+
performanceClient
|
|
136
137
|
);
|
|
137
138
|
|
|
138
139
|
const idToken = await invokeAsync(
|
|
@@ -231,7 +232,8 @@ async function loadAccount(
|
|
|
231
232
|
logger: Logger,
|
|
232
233
|
cryptoObj: ICrypto,
|
|
233
234
|
authority: Authority,
|
|
234
|
-
idTokenClaims?: TokenClaims
|
|
235
|
+
idTokenClaims?: TokenClaims,
|
|
236
|
+
performanceClient?: IPerformanceClient
|
|
235
237
|
): Promise<AccountEntity> {
|
|
236
238
|
logger.verbose("TokenCache - loading account", correlationId);
|
|
237
239
|
|
|
@@ -278,7 +280,8 @@ async function loadAccount(
|
|
|
278
280
|
claimsTenantId,
|
|
279
281
|
undefined, // authCodePayload
|
|
280
282
|
undefined, // nativeAccountId
|
|
281
|
-
logger
|
|
283
|
+
logger,
|
|
284
|
+
performanceClient
|
|
282
285
|
);
|
|
283
286
|
|
|
284
287
|
await storage.setAccount(
|
|
@@ -162,6 +162,14 @@ export type BrowserSystemOptions = SystemOptions & {
|
|
|
162
162
|
protocolMode?: ProtocolMode;
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
+
/** @internal */
|
|
166
|
+
export type BrowserExperimentalOptions = {
|
|
167
|
+
/**
|
|
168
|
+
* Enables iframe timeout telemetry experiment for silent iframe bridge monitoring.
|
|
169
|
+
*/
|
|
170
|
+
iframeTimeoutTelemetry?: boolean;
|
|
171
|
+
};
|
|
172
|
+
|
|
165
173
|
/**
|
|
166
174
|
* Telemetry Options
|
|
167
175
|
*/
|
|
@@ -192,6 +200,10 @@ export type Configuration = {
|
|
|
192
200
|
* This is where you can configure the network client, logger, token renewal offset
|
|
193
201
|
*/
|
|
194
202
|
system?: BrowserSystemOptions;
|
|
203
|
+
/**
|
|
204
|
+
* This is where you can configure experimental features. These do not follow semver and may be changed or removed without a major version bump. Use with caution.
|
|
205
|
+
*/
|
|
206
|
+
experimental?: BrowserExperimentalOptions;
|
|
195
207
|
/**
|
|
196
208
|
* This is where you can configure telemetry data and options
|
|
197
209
|
*/
|
|
@@ -203,6 +215,7 @@ export type BrowserConfiguration = {
|
|
|
203
215
|
auth: InternalAuthOptions;
|
|
204
216
|
cache: Required<CacheOptions>;
|
|
205
217
|
system: Required<BrowserSystemOptions>;
|
|
218
|
+
experimental: Required<BrowserExperimentalOptions>;
|
|
206
219
|
telemetry: Required<BrowserTelemetryOptions>;
|
|
207
220
|
};
|
|
208
221
|
|
|
@@ -220,6 +233,7 @@ export function buildConfiguration(
|
|
|
220
233
|
auth: userInputAuth,
|
|
221
234
|
cache: userInputCache,
|
|
222
235
|
system: userInputSystem,
|
|
236
|
+
experimental: userInputExperimental,
|
|
223
237
|
telemetry: userInputTelemetry,
|
|
224
238
|
}: Configuration,
|
|
225
239
|
isBrowserEnvironment: boolean
|
|
@@ -305,6 +319,10 @@ export function buildConfiguration(
|
|
|
305
319
|
client: new StubPerformanceClient(),
|
|
306
320
|
};
|
|
307
321
|
|
|
322
|
+
const DEFAULT_EXPERIMENTAL_OPTIONS: Required<BrowserExperimentalOptions> = {
|
|
323
|
+
iframeTimeoutTelemetry: false,
|
|
324
|
+
};
|
|
325
|
+
|
|
308
326
|
// Throw an error if user has set OIDCOptions without being in OIDC protocol mode
|
|
309
327
|
if (
|
|
310
328
|
userInputSystem?.protocolMode !== ProtocolMode.OIDC &&
|
|
@@ -343,6 +361,10 @@ export function buildConfiguration(
|
|
|
343
361
|
},
|
|
344
362
|
cache: { ...DEFAULT_CACHE_OPTIONS, ...userInputCache },
|
|
345
363
|
system: providedSystemOptions,
|
|
364
|
+
experimental: {
|
|
365
|
+
...DEFAULT_EXPERIMENTAL_OPTIONS,
|
|
366
|
+
...userInputExperimental,
|
|
367
|
+
},
|
|
346
368
|
telemetry: { ...DEFAULT_TELEMETRY_OPTIONS, ...userInputTelemetry },
|
|
347
369
|
};
|
|
348
370
|
|
|
@@ -260,11 +260,11 @@ export class StandardController implements IController {
|
|
|
260
260
|
this.activeSilentTokenRequests = new Map();
|
|
261
261
|
|
|
262
262
|
// Register listener functions
|
|
263
|
-
this.
|
|
263
|
+
this.trackStateChange = this.trackStateChange.bind(this);
|
|
264
264
|
|
|
265
265
|
// Register listener functions
|
|
266
|
-
this.
|
|
267
|
-
this.
|
|
266
|
+
this.trackStateChangeWithMeasurement =
|
|
267
|
+
this.trackStateChangeWithMeasurement.bind(this);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
static async createController(
|
|
@@ -276,15 +276,39 @@ export class StandardController implements IController {
|
|
|
276
276
|
return controller;
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
private
|
|
279
|
+
private trackStateChange(
|
|
280
|
+
correlationId: string | undefined,
|
|
281
|
+
event: Event
|
|
282
|
+
): void {
|
|
280
283
|
if (!correlationId) {
|
|
281
284
|
return;
|
|
282
285
|
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
|
|
287
|
+
if (event.type === "visibilitychange") {
|
|
288
|
+
this.logger.info("Perf: Visibility change detected", correlationId);
|
|
289
|
+
this.performanceClient.incrementFields(
|
|
290
|
+
{ visibilityChangeCount: 1 },
|
|
291
|
+
correlationId
|
|
292
|
+
);
|
|
293
|
+
} else if (event.type === "online") {
|
|
294
|
+
this.logger.info(
|
|
295
|
+
"Perf: Online status change detected",
|
|
296
|
+
correlationId
|
|
297
|
+
);
|
|
298
|
+
this.performanceClient.incrementFields(
|
|
299
|
+
{ onlineStatusChangeCount: 1 },
|
|
300
|
+
correlationId
|
|
301
|
+
);
|
|
302
|
+
} else if (event.type === "offline") {
|
|
303
|
+
this.logger.info(
|
|
304
|
+
"Perf: Offline status change detected",
|
|
305
|
+
correlationId
|
|
306
|
+
);
|
|
307
|
+
this.performanceClient.incrementFields(
|
|
308
|
+
{ onlineStatusChangeCount: 1 },
|
|
309
|
+
correlationId
|
|
310
|
+
);
|
|
311
|
+
}
|
|
288
312
|
}
|
|
289
313
|
|
|
290
314
|
/**
|
|
@@ -894,7 +918,7 @@ export class StandardController implements IController {
|
|
|
894
918
|
});
|
|
895
919
|
}
|
|
896
920
|
|
|
897
|
-
private
|
|
921
|
+
private trackStateChangeWithMeasurement(event: Event): void {
|
|
898
922
|
const measurement =
|
|
899
923
|
this.ssoSilentMeasurement ||
|
|
900
924
|
this.acquireTokenByCodeAsyncMeasurement;
|
|
@@ -902,9 +926,43 @@ export class StandardController implements IController {
|
|
|
902
926
|
return;
|
|
903
927
|
}
|
|
904
928
|
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
929
|
+
if (event.type === "visibilitychange") {
|
|
930
|
+
this.logger.info(
|
|
931
|
+
`Perf: Visibility change detected in '${measurement.event.name}'`,
|
|
932
|
+
measurement.event.correlationId
|
|
933
|
+
);
|
|
934
|
+
measurement.increment({
|
|
935
|
+
visibilityChangeCount: 1,
|
|
936
|
+
});
|
|
937
|
+
} else if (event.type === "online") {
|
|
938
|
+
this.logger.info(
|
|
939
|
+
`Perf: Online status change detected in '${measurement.event.name}'`,
|
|
940
|
+
measurement.event.correlationId
|
|
941
|
+
);
|
|
942
|
+
measurement.increment({
|
|
943
|
+
onlineStatusChangeCount: 1,
|
|
944
|
+
});
|
|
945
|
+
} else if (event.type === "offline") {
|
|
946
|
+
this.logger.info(
|
|
947
|
+
`Perf: Offline status change detected in '${measurement.event.name}'`,
|
|
948
|
+
measurement.event.correlationId
|
|
949
|
+
);
|
|
950
|
+
measurement.increment({
|
|
951
|
+
onlineStatusChangeCount: 1,
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
private addStateChangeListeners(listener: (event: Event) => void): void {
|
|
957
|
+
document.addEventListener("visibilitychange", listener);
|
|
958
|
+
window.addEventListener("online", listener);
|
|
959
|
+
window.addEventListener("offline", listener);
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
private removeStateChangeListeners(listener: (event: Event) => void): void {
|
|
963
|
+
document.removeEventListener("visibilitychange", listener);
|
|
964
|
+
window.removeEventListener("online", listener);
|
|
965
|
+
window.removeEventListener("offline", listener);
|
|
908
966
|
}
|
|
909
967
|
// #endregion
|
|
910
968
|
|
|
@@ -948,12 +1006,10 @@ export class StandardController implements IController {
|
|
|
948
1006
|
);
|
|
949
1007
|
this.ssoSilentMeasurement?.increment({
|
|
950
1008
|
visibilityChangeCount: 0,
|
|
1009
|
+
onlineStatusChangeCount: 0,
|
|
951
1010
|
});
|
|
952
1011
|
|
|
953
|
-
|
|
954
|
-
"visibilitychange",
|
|
955
|
-
this.trackPageVisibilityWithMeasurement
|
|
956
|
-
);
|
|
1012
|
+
this.addStateChangeListeners(this.trackStateChangeWithMeasurement);
|
|
957
1013
|
|
|
958
1014
|
const loggedInAccounts = this.getAllAccounts();
|
|
959
1015
|
this.logger.verbose("ssoSilent called", correlationId);
|
|
@@ -1036,9 +1092,8 @@ export class StandardController implements IController {
|
|
|
1036
1092
|
throw e;
|
|
1037
1093
|
})
|
|
1038
1094
|
.finally(() => {
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
this.trackPageVisibilityWithMeasurement
|
|
1095
|
+
this.removeStateChangeListeners(
|
|
1096
|
+
this.trackStateChangeWithMeasurement
|
|
1042
1097
|
);
|
|
1043
1098
|
});
|
|
1044
1099
|
}
|
|
@@ -1209,11 +1264,9 @@ export class StandardController implements IController {
|
|
|
1209
1264
|
);
|
|
1210
1265
|
this.acquireTokenByCodeAsyncMeasurement?.increment({
|
|
1211
1266
|
visibilityChangeCount: 0,
|
|
1267
|
+
onlineStatusChangeCount: 0,
|
|
1212
1268
|
});
|
|
1213
|
-
|
|
1214
|
-
"visibilitychange",
|
|
1215
|
-
this.trackPageVisibilityWithMeasurement
|
|
1216
|
-
);
|
|
1269
|
+
this.addStateChangeListeners(this.trackStateChangeWithMeasurement);
|
|
1217
1270
|
const silentAuthCodeClient =
|
|
1218
1271
|
this.createSilentAuthCodeClient(correlationId);
|
|
1219
1272
|
const silentTokenResult = await silentAuthCodeClient
|
|
@@ -1236,9 +1289,8 @@ export class StandardController implements IController {
|
|
|
1236
1289
|
throw tokenRenewalError;
|
|
1237
1290
|
})
|
|
1238
1291
|
.finally(() => {
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
this.trackPageVisibilityWithMeasurement
|
|
1292
|
+
this.removeStateChangeListeners(
|
|
1293
|
+
this.trackStateChangeWithMeasurement
|
|
1242
1294
|
);
|
|
1243
1295
|
});
|
|
1244
1296
|
return silentTokenResult;
|
|
@@ -2012,8 +2064,8 @@ export class StandardController implements IController {
|
|
|
2012
2064
|
request: SilentRequest & { correlationId: string },
|
|
2013
2065
|
account: AccountInfo
|
|
2014
2066
|
): Promise<AuthenticationResult> {
|
|
2015
|
-
const
|
|
2016
|
-
this.
|
|
2067
|
+
const trackStateChange = (event: Event) =>
|
|
2068
|
+
this.trackStateChange(request.correlationId, event);
|
|
2017
2069
|
this.eventHandler.emitEvent(
|
|
2018
2070
|
EventType.ACQUIRE_TOKEN_START,
|
|
2019
2071
|
request.correlationId,
|
|
@@ -2023,12 +2075,12 @@ export class StandardController implements IController {
|
|
|
2023
2075
|
|
|
2024
2076
|
if (request.correlationId) {
|
|
2025
2077
|
this.performanceClient.incrementFields(
|
|
2026
|
-
{ visibilityChangeCount: 0 },
|
|
2078
|
+
{ visibilityChangeCount: 0, onlineStatusChangeCount: 0 },
|
|
2027
2079
|
request.correlationId
|
|
2028
2080
|
);
|
|
2029
2081
|
}
|
|
2030
2082
|
|
|
2031
|
-
|
|
2083
|
+
this.addStateChangeListeners(trackStateChange);
|
|
2032
2084
|
|
|
2033
2085
|
const silentRequest = await invokeAsync(
|
|
2034
2086
|
initializeSilentRequest,
|
|
@@ -2180,10 +2232,7 @@ export class StandardController implements IController {
|
|
|
2180
2232
|
throw tokenRenewalError;
|
|
2181
2233
|
})
|
|
2182
2234
|
.finally(() => {
|
|
2183
|
-
|
|
2184
|
-
"visibilitychange",
|
|
2185
|
-
trackPageVisibility
|
|
2186
|
-
);
|
|
2235
|
+
this.removeStateChangeListeners(trackStateChange);
|
|
2187
2236
|
});
|
|
2188
2237
|
}
|
|
2189
2238
|
|
package/src/index.ts
CHANGED
|
@@ -4,80 +4,80 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
AuthToken,
|
|
7
|
+
AADServerParamKeys,
|
|
8
|
+
AccessTokenEntity,
|
|
10
9
|
AccountEntity,
|
|
10
|
+
AccountEntityUtils,
|
|
11
|
+
AccountInfo,
|
|
12
|
+
AuthError,
|
|
13
|
+
AuthToken,
|
|
11
14
|
AuthorityType,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
CacheHelpers,
|
|
16
|
+
ClientAuthErrorCodes,
|
|
17
|
+
CommonSilentFlowRequest,
|
|
18
|
+
Constants,
|
|
19
|
+
ICrypto,
|
|
17
20
|
IPerformanceClient,
|
|
18
21
|
IdTokenEntity,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
InProgressPerformanceEvent,
|
|
23
|
+
Logger,
|
|
24
|
+
PerformanceEvents,
|
|
25
|
+
PopTokenGenerator,
|
|
26
|
+
ScopeSet,
|
|
27
|
+
ServerTelemetryManager,
|
|
28
|
+
SignedHttpRequestParameters,
|
|
29
|
+
TimeUtils,
|
|
24
30
|
TokenClaims,
|
|
31
|
+
UrlString,
|
|
32
|
+
buildAccountToCache,
|
|
25
33
|
createClientAuthError,
|
|
26
|
-
ClientAuthErrorCodes,
|
|
27
34
|
invokeAsync,
|
|
28
35
|
updateAccountTenantProfileData,
|
|
29
|
-
CacheHelpers,
|
|
30
|
-
buildAccountToCache,
|
|
31
|
-
InProgressPerformanceEvent,
|
|
32
|
-
ServerTelemetryManager,
|
|
33
|
-
AccountEntityUtils,
|
|
34
|
-
Constants,
|
|
35
|
-
PerformanceEvents,
|
|
36
36
|
} from "@azure/msal-common/browser";
|
|
37
|
-
import {
|
|
38
|
-
BaseInteractionClient,
|
|
39
|
-
getDiscoveredAuthority,
|
|
40
|
-
getRedirectUri,
|
|
41
|
-
initializeServerTelemetryManager,
|
|
42
|
-
} from "./BaseInteractionClient.js";
|
|
43
|
-
import * as BrowserPerformanceEvents from "../telemetry/BrowserPerformanceEvents.js";
|
|
44
|
-
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
45
|
-
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js";
|
|
46
|
-
import { EventHandler } from "../event/EventHandler.js";
|
|
47
|
-
import { PopupRequest } from "../request/PopupRequest.js";
|
|
48
|
-
import { SilentRequest } from "../request/SilentRequest.js";
|
|
49
|
-
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
|
|
50
|
-
import {
|
|
51
|
-
ApiId,
|
|
52
|
-
TemporaryCacheKeys,
|
|
53
|
-
PlatformAuthConstants,
|
|
54
|
-
BrowserConstants,
|
|
55
|
-
CacheLookupPolicy,
|
|
56
|
-
} from "../utils/BrowserConstants.js";
|
|
37
|
+
import { IPlatformAuthHandler } from "../broker/nativeBroker/IPlatformAuthHandler.js";
|
|
57
38
|
import { PlatformAuthRequest } from "../broker/nativeBroker/PlatformAuthRequest.js";
|
|
58
39
|
import {
|
|
59
40
|
MATS,
|
|
60
41
|
PlatformAuthResponse,
|
|
61
42
|
} from "../broker/nativeBroker/PlatformAuthResponse.js";
|
|
43
|
+
import { BrowserCacheManager } from "../cache/BrowserCacheManager.js";
|
|
44
|
+
import { BrowserConfiguration } from "../config/Configuration.js";
|
|
45
|
+
import { base64Decode } from "../encode/Base64Decode.js";
|
|
46
|
+
import {
|
|
47
|
+
BrowserAuthErrorCodes,
|
|
48
|
+
createBrowserAuthError,
|
|
49
|
+
} from "../error/BrowserAuthError.js";
|
|
62
50
|
import {
|
|
63
51
|
NativeAuthError,
|
|
64
52
|
NativeAuthErrorCodes,
|
|
65
53
|
createNativeAuthError,
|
|
66
54
|
isFatalNativeAuthError,
|
|
67
55
|
} from "../error/NativeAuthError.js";
|
|
68
|
-
import {
|
|
69
|
-
import { NavigationOptions } from "../navigation/NavigationOptions.js";
|
|
56
|
+
import { EventHandler } from "../event/EventHandler.js";
|
|
70
57
|
import { INavigationClient } from "../navigation/INavigationClient.js";
|
|
71
|
-
import {
|
|
72
|
-
createBrowserAuthError,
|
|
73
|
-
BrowserAuthErrorCodes,
|
|
74
|
-
} from "../error/BrowserAuthError.js";
|
|
75
|
-
import { SilentCacheClient } from "./SilentCacheClient.js";
|
|
76
|
-
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
77
|
-
import { base64Decode } from "../encode/Base64Decode.js";
|
|
58
|
+
import { NavigationOptions } from "../navigation/NavigationOptions.js";
|
|
78
59
|
import { version } from "../packageMetadata.js";
|
|
79
|
-
import { IPlatformAuthHandler } from "../broker/nativeBroker/IPlatformAuthHandler.js";
|
|
80
60
|
import { HandleRedirectPromiseOptions } from "../request/HandleRedirectPromiseOptions.js";
|
|
61
|
+
import { PopupRequest } from "../request/PopupRequest.js";
|
|
62
|
+
import { RedirectRequest } from "../request/RedirectRequest.js";
|
|
63
|
+
import { SilentRequest } from "../request/SilentRequest.js";
|
|
64
|
+
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
|
|
65
|
+
import { AuthenticationResult } from "../response/AuthenticationResult.js";
|
|
66
|
+
import * as BrowserPerformanceEvents from "../telemetry/BrowserPerformanceEvents.js";
|
|
67
|
+
import {
|
|
68
|
+
ApiId,
|
|
69
|
+
BrowserConstants,
|
|
70
|
+
CacheLookupPolicy,
|
|
71
|
+
PlatformAuthConstants,
|
|
72
|
+
TemporaryCacheKeys,
|
|
73
|
+
} from "../utils/BrowserConstants.js";
|
|
74
|
+
import {
|
|
75
|
+
BaseInteractionClient,
|
|
76
|
+
getDiscoveredAuthority,
|
|
77
|
+
getRedirectUri,
|
|
78
|
+
initializeServerTelemetryManager,
|
|
79
|
+
} from "./BaseInteractionClient.js";
|
|
80
|
+
import { SilentCacheClient } from "./SilentCacheClient.js";
|
|
81
81
|
|
|
82
82
|
export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
83
83
|
protected apiId: ApiId;
|
|
@@ -542,10 +542,12 @@ export class PlatformAuthInteractionClient extends BaseInteractionClient {
|
|
|
542
542
|
this.correlationId,
|
|
543
543
|
idTokenClaims,
|
|
544
544
|
response.client_info,
|
|
545
|
-
|
|
545
|
+
authority.getPreferredCache(), // environment
|
|
546
546
|
idTokenClaims.tid,
|
|
547
547
|
undefined, // auth code payload
|
|
548
|
-
response.account.id
|
|
548
|
+
response.account.id,
|
|
549
|
+
this.logger,
|
|
550
|
+
this.performanceClient
|
|
549
551
|
);
|
|
550
552
|
|
|
551
553
|
// Ensure expires_in is in number format
|
|
@@ -305,7 +305,8 @@ export class SilentIframeClient extends StandardInteractionClient {
|
|
|
305
305
|
this.logger,
|
|
306
306
|
this.browserCrypto,
|
|
307
307
|
request,
|
|
308
|
-
this.performanceClient
|
|
308
|
+
this.performanceClient,
|
|
309
|
+
this.config.experimental
|
|
309
310
|
);
|
|
310
311
|
} finally {
|
|
311
312
|
invoke(
|
|
@@ -483,7 +484,8 @@ export class SilentIframeClient extends StandardInteractionClient {
|
|
|
483
484
|
this.logger,
|
|
484
485
|
this.browserCrypto,
|
|
485
486
|
request,
|
|
486
|
-
this.performanceClient
|
|
487
|
+
this.performanceClient,
|
|
488
|
+
this.config.experimental
|
|
487
489
|
);
|
|
488
490
|
} finally {
|
|
489
491
|
invoke(
|
package/src/packageMetadata.ts
CHANGED
|
@@ -94,6 +94,10 @@ export class BrowserPerformanceClient
|
|
|
94
94
|
return document.visibilityState?.toString() || null;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
private getOnlineStatus(): boolean | null {
|
|
98
|
+
return typeof navigator !== "undefined" ? navigator.onLine : null;
|
|
99
|
+
}
|
|
100
|
+
|
|
97
101
|
private deleteIncompleteSubMeasurements(
|
|
98
102
|
inProgressEvent: InProgressPerformanceEvent
|
|
99
103
|
): void {
|
|
@@ -134,6 +138,7 @@ export class BrowserPerformanceClient
|
|
|
134
138
|
): InProgressPerformanceEvent {
|
|
135
139
|
// Capture page visibilityState and then invoke start/end measurement
|
|
136
140
|
const startPageVisibility = this.getPageVisibility();
|
|
141
|
+
const startOnlineStatus = this.getOnlineStatus();
|
|
137
142
|
const inProgressEvent = super.startMeasurement(
|
|
138
143
|
measureName,
|
|
139
144
|
correlationId
|
|
@@ -166,6 +171,7 @@ export class BrowserPerformanceClient
|
|
|
166
171
|
{
|
|
167
172
|
...event,
|
|
168
173
|
startPageVisibility,
|
|
174
|
+
startOnlineStatus,
|
|
169
175
|
endPageVisibility: this.getPageVisibility(),
|
|
170
176
|
durationMs: getPerfDurationMs(startTime),
|
|
171
177
|
networkEffectiveType: networkInfo.effectiveType,
|
|
@@ -184,3 +184,9 @@ export const LoadAccount = "loadAccount";
|
|
|
184
184
|
export const LoadIdToken = "loadIdToken";
|
|
185
185
|
export const LoadAccessToken = "loadAccessToken";
|
|
186
186
|
export const LoadRefreshToken = "loadRefreshToken";
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Background telemetry measurement that tracks whether a late bridge response
|
|
190
|
+
* arrives after the iframe timeout has already fired.
|
|
191
|
+
*/
|
|
192
|
+
export const WaitForBridgeLateResponse = "waitForBridgeLateResponse";
|