@azure/msal-browser 3.7.2-alpha.0 → 3.7.2-alpha.1

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.
Files changed (79) hide show
  1. package/dist/app/IPublicClientApplication.mjs +1 -1
  2. package/dist/app/PublicClientApplication.mjs +1 -1
  3. package/dist/app/PublicClientNext.mjs +1 -1
  4. package/dist/broker/nativeBroker/NativeMessageHandler.mjs +1 -1
  5. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  6. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  7. package/dist/cache/BrowserCacheManager.mjs +1 -1
  8. package/dist/cache/BrowserStorage.mjs +1 -1
  9. package/dist/cache/CryptoKeyStore.mjs +1 -1
  10. package/dist/cache/DatabaseStorage.mjs +1 -1
  11. package/dist/cache/MemoryStorage.mjs +1 -1
  12. package/dist/cache/TokenCache.mjs +1 -1
  13. package/dist/config/Configuration.mjs +1 -1
  14. package/dist/controllers/ControllerFactory.mjs +1 -1
  15. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  16. package/dist/controllers/StandardController.mjs +1 -1
  17. package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
  18. package/dist/crypto/BrowserCrypto.mjs +1 -1
  19. package/dist/crypto/CryptoOps.mjs +1 -1
  20. package/dist/crypto/PkceGenerator.mjs +1 -1
  21. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  22. package/dist/encode/Base64Decode.mjs +1 -1
  23. package/dist/encode/Base64Encode.mjs +1 -1
  24. package/dist/error/BrowserAuthError.mjs +1 -1
  25. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  26. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  27. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  28. package/dist/error/NativeAuthError.mjs +1 -1
  29. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  30. package/dist/error/NestedAppAuthError.mjs +1 -1
  31. package/dist/event/EventHandler.d.ts.map +1 -1
  32. package/dist/event/EventHandler.mjs +8 -2
  33. package/dist/event/EventHandler.mjs.map +1 -1
  34. package/dist/event/EventMessage.mjs +1 -1
  35. package/dist/event/EventType.d.ts +1 -0
  36. package/dist/event/EventType.d.ts.map +1 -1
  37. package/dist/event/EventType.mjs +2 -1
  38. package/dist/event/EventType.mjs.map +1 -1
  39. package/dist/index.mjs +1 -1
  40. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  41. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  42. package/dist/interaction_client/NativeInteractionClient.mjs +1 -1
  43. package/dist/interaction_client/PopupClient.mjs +1 -1
  44. package/dist/interaction_client/RedirectClient.mjs +1 -1
  45. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  46. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  47. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  48. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  49. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  50. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  51. package/dist/interaction_handler/RedirectHandler.mjs +1 -1
  52. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  53. package/dist/naa/BridgeError.mjs +1 -1
  54. package/dist/naa/BridgeProxy.mjs +1 -1
  55. package/dist/naa/BridgeStatusCode.mjs +1 -1
  56. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  57. package/dist/navigation/NavigationClient.mjs +1 -1
  58. package/dist/network/FetchClient.mjs +1 -1
  59. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  60. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  61. package/dist/operatingcontext/TeamsAppOperatingContext.mjs +1 -1
  62. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  63. package/dist/packageMetadata.d.ts +1 -1
  64. package/dist/packageMetadata.mjs +2 -2
  65. package/dist/response/ResponseHandler.mjs +1 -1
  66. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  67. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  68. package/dist/utils/BrowserConstants.mjs +1 -1
  69. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  70. package/dist/utils/BrowserUtils.mjs +1 -1
  71. package/lib/msal-browser.cjs +71 -64
  72. package/lib/msal-browser.cjs.map +1 -1
  73. package/lib/msal-browser.js +71 -64
  74. package/lib/msal-browser.js.map +1 -1
  75. package/lib/msal-browser.min.js +58 -58
  76. package/package.json +2 -2
  77. package/src/event/EventHandler.ts +8 -0
  78. package/src/event/EventType.ts +1 -0
  79. package/src/packageMetadata.ts +1 -1
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": "3.7.2-alpha.0",
13
+ "version": "3.7.2-alpha.1",
14
14
  "description": "Microsoft Authentication Library for js",
15
15
  "keywords": [
16
16
  "implicit",
@@ -101,6 +101,6 @@
101
101
  "typescript": "^4.9.5"
102
102
  },
103
103
  "dependencies": {
104
- "@azure/msal-common": "14.6.2-alpha.0"
104
+ "@azure/msal-common": "14.6.2-alpha.1"
105
105
  }
106
106
  }
@@ -8,6 +8,7 @@ import {
8
8
  Logger,
9
9
  AccountEntity,
10
10
  CacheManager,
11
+ PersistentCacheKeys,
11
12
  } from "@azure/msal-common";
12
13
  import { InteractionType } from "../utils/BrowserConstants";
13
14
  import {
@@ -139,6 +140,13 @@ export class EventHandler {
139
140
  */
140
141
  private handleAccountCacheChange(e: StorageEvent): void {
141
142
  try {
143
+ // Handle active account filter change
144
+ if (e.key?.includes(PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS)) {
145
+ // This event has no payload, it only signals cross-tab app instances that the results of calling getActiveAccount() will have changed
146
+ this.emitEvent(EventType.ACTIVE_ACCOUNT_CHANGED);
147
+ }
148
+
149
+ // Handle account object change
142
150
  const cacheValue = e.newValue || e.oldValue;
143
151
  if (!cacheValue) {
144
152
  return;
@@ -8,6 +8,7 @@ export const EventType = {
8
8
  INITIALIZE_END: "msal:initializeEnd",
9
9
  ACCOUNT_ADDED: "msal:accountAdded",
10
10
  ACCOUNT_REMOVED: "msal:accountRemoved",
11
+ ACTIVE_ACCOUNT_CHANGED: "msal:activeAccountChanged",
11
12
  LOGIN_START: "msal:loginStart",
12
13
  LOGIN_SUCCESS: "msal:loginSuccess",
13
14
  LOGIN_FAILURE: "msal:loginFailure",
@@ -1,3 +1,3 @@
1
1
  /* eslint-disable header/header */
2
2
  export const name = "@azure/msal-browser";
3
- export const version = "3.7.2-alpha.0";
3
+ export const version = "3.7.2-alpha.1";