@azure/msal-browser 3.5.1-beta.1 → 3.6.0

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 (258) hide show
  1. package/dist/app/IPublicClientApplication.d.ts +51 -51
  2. package/dist/app/IPublicClientApplication.mjs +102 -102
  3. package/dist/app/IPublicClientApplication.mjs.map +1 -1
  4. package/dist/app/PublicClientApplication.d.ts +269 -268
  5. package/dist/app/PublicClientApplication.d.ts.map +1 -1
  6. package/dist/app/PublicClientApplication.mjs +333 -333
  7. package/dist/app/PublicClientApplication.mjs.map +1 -1
  8. package/dist/app/PublicClientNext.d.ts +273 -273
  9. package/dist/app/PublicClientNext.mjs +351 -351
  10. package/dist/app/PublicClientNext.mjs.map +1 -1
  11. package/dist/broker/nativeBroker/NativeMessageHandler.d.ts +62 -62
  12. package/dist/broker/nativeBroker/NativeMessageHandler.mjs +254 -254
  13. package/dist/broker/nativeBroker/NativeMessageHandler.mjs.map +1 -1
  14. package/dist/broker/nativeBroker/NativeRequest.d.ts +44 -44
  15. package/dist/broker/nativeBroker/NativeResponse.d.ts +48 -48
  16. package/dist/broker/nativeBroker/NativeStatusCodes.d.ts +7 -7
  17. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +11 -11
  18. package/dist/broker/nativeBroker/NativeStatusCodes.mjs.map +1 -1
  19. package/dist/cache/AsyncMemoryStorage.d.ts +51 -51
  20. package/dist/cache/AsyncMemoryStorage.mjs +132 -132
  21. package/dist/cache/AsyncMemoryStorage.mjs.map +1 -1
  22. package/dist/cache/BrowserCacheManager.d.ts +395 -383
  23. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  24. package/dist/cache/BrowserCacheManager.mjs +1282 -1262
  25. package/dist/cache/BrowserCacheManager.mjs.map +1 -1
  26. package/dist/cache/BrowserStorage.d.ts +11 -11
  27. package/dist/cache/BrowserStorage.mjs +32 -32
  28. package/dist/cache/BrowserStorage.mjs.map +1 -1
  29. package/dist/cache/CryptoKeyStore.d.ts +18 -18
  30. package/dist/cache/CryptoKeyStore.mjs +40 -40
  31. package/dist/cache/CryptoKeyStore.mjs.map +1 -1
  32. package/dist/cache/DatabaseStorage.d.ts +56 -56
  33. package/dist/cache/DatabaseStorage.mjs +190 -190
  34. package/dist/cache/DatabaseStorage.mjs.map +1 -1
  35. package/dist/cache/IAsyncMemoryStorage.d.ts +27 -27
  36. package/dist/cache/ITokenCache.d.ts +11 -11
  37. package/dist/cache/IWindowStorage.d.ts +27 -27
  38. package/dist/cache/MemoryStorage.d.ts +11 -11
  39. package/dist/cache/MemoryStorage.mjs +31 -31
  40. package/dist/cache/MemoryStorage.mjs.map +1 -1
  41. package/dist/cache/TokenCache.d.ts +77 -77
  42. package/dist/cache/TokenCache.d.ts.map +1 -1
  43. package/dist/cache/TokenCache.mjs +221 -225
  44. package/dist/cache/TokenCache.mjs.map +1 -1
  45. package/dist/config/Configuration.d.ts +206 -206
  46. package/dist/config/Configuration.d.ts.map +1 -1
  47. package/dist/config/Configuration.mjs +128 -128
  48. package/dist/config/Configuration.mjs.map +1 -1
  49. package/dist/controllers/ControllerFactory.d.ts +4 -4
  50. package/dist/controllers/ControllerFactory.d.ts.map +1 -1
  51. package/dist/controllers/ControllerFactory.mjs +29 -29
  52. package/dist/controllers/ControllerFactory.mjs.map +1 -1
  53. package/dist/controllers/IController.d.ts +61 -61
  54. package/dist/controllers/NestedAppAuthController.d.ts +95 -95
  55. package/dist/controllers/NestedAppAuthController.mjs +334 -334
  56. package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
  57. package/dist/controllers/StandardController.d.ts +407 -407
  58. package/dist/controllers/StandardController.d.ts.map +1 -1
  59. package/dist/controllers/StandardController.mjs +1291 -1293
  60. package/dist/controllers/StandardController.mjs.map +1 -1
  61. package/dist/controllers/UnknownOperatingContextController.d.ts +87 -87
  62. package/dist/controllers/UnknownOperatingContextController.mjs +264 -264
  63. package/dist/controllers/UnknownOperatingContextController.mjs.map +1 -1
  64. package/dist/crypto/BrowserCrypto.d.ts +44 -44
  65. package/dist/crypto/BrowserCrypto.mjs +93 -93
  66. package/dist/crypto/BrowserCrypto.mjs.map +1 -1
  67. package/dist/crypto/CryptoOps.d.ts +63 -63
  68. package/dist/crypto/CryptoOps.mjs +145 -145
  69. package/dist/crypto/CryptoOps.mjs.map +1 -1
  70. package/dist/crypto/PkceGenerator.d.ts +8 -8
  71. package/dist/crypto/PkceGenerator.mjs +54 -54
  72. package/dist/crypto/PkceGenerator.mjs.map +1 -1
  73. package/dist/crypto/SignedHttpRequest.d.ts +30 -30
  74. package/dist/crypto/SignedHttpRequest.mjs +39 -39
  75. package/dist/crypto/SignedHttpRequest.mjs.map +1 -1
  76. package/dist/encode/Base64Decode.d.ts +9 -9
  77. package/dist/encode/Base64Decode.mjs +36 -36
  78. package/dist/encode/Base64Decode.mjs.map +1 -1
  79. package/dist/encode/Base64Encode.d.ts +19 -19
  80. package/dist/encode/Base64Encode.mjs +43 -43
  81. package/dist/encode/Base64Encode.mjs.map +1 -1
  82. package/dist/error/BrowserAuthError.d.ts +250 -250
  83. package/dist/error/BrowserAuthError.mjs +258 -258
  84. package/dist/error/BrowserAuthError.mjs.map +1 -1
  85. package/dist/error/BrowserAuthErrorCodes.d.ts +45 -45
  86. package/dist/error/BrowserAuthErrorCodes.mjs +49 -49
  87. package/dist/error/BrowserAuthErrorCodes.mjs.map +1 -1
  88. package/dist/error/BrowserConfigurationAuthError.d.ts +33 -33
  89. package/dist/error/BrowserConfigurationAuthError.mjs +40 -40
  90. package/dist/error/BrowserConfigurationAuthError.mjs.map +1 -1
  91. package/dist/error/BrowserConfigurationAuthErrorCodes.d.ts +3 -3
  92. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +7 -7
  93. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs.map +1 -1
  94. package/dist/error/NativeAuthError.d.ts +29 -29
  95. package/dist/error/NativeAuthError.mjs +60 -60
  96. package/dist/error/NativeAuthError.mjs.map +1 -1
  97. package/dist/error/NativeAuthErrorCodes.d.ts +2 -2
  98. package/dist/error/NativeAuthErrorCodes.mjs +6 -6
  99. package/dist/error/NativeAuthErrorCodes.mjs.map +1 -1
  100. package/dist/error/NestedAppAuthError.d.ts +14 -14
  101. package/dist/error/NestedAppAuthError.mjs +23 -23
  102. package/dist/error/NestedAppAuthError.mjs.map +1 -1
  103. package/dist/event/EventHandler.d.ts +41 -41
  104. package/dist/event/EventHandler.mjs +119 -119
  105. package/dist/event/EventHandler.mjs.map +1 -1
  106. package/dist/event/EventMessage.d.ts +25 -25
  107. package/dist/event/EventMessage.mjs +68 -68
  108. package/dist/event/EventMessage.mjs.map +1 -1
  109. package/dist/event/EventType.d.ts +28 -28
  110. package/dist/event/EventType.mjs +31 -31
  111. package/dist/event/EventType.mjs.map +1 -1
  112. package/dist/index.d.ts +39 -39
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.mjs +1 -1
  115. package/dist/interaction_client/BaseInteractionClient.d.ts +54 -54
  116. package/dist/interaction_client/BaseInteractionClient.mjs +152 -152
  117. package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
  118. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +4 -4
  119. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +10 -10
  120. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs.map +1 -1
  121. package/dist/interaction_client/NativeInteractionClient.d.ts +140 -140
  122. package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
  123. package/dist/interaction_client/NativeInteractionClient.mjs +539 -549
  124. package/dist/interaction_client/NativeInteractionClient.mjs.map +1 -1
  125. package/dist/interaction_client/PopupClient.d.ts +105 -105
  126. package/dist/interaction_client/PopupClient.mjs +432 -432
  127. package/dist/interaction_client/PopupClient.mjs.map +1 -1
  128. package/dist/interaction_client/RedirectClient.d.ts +49 -49
  129. package/dist/interaction_client/RedirectClient.mjs +311 -311
  130. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  131. package/dist/interaction_client/SilentAuthCodeClient.d.ts +23 -23
  132. package/dist/interaction_client/SilentAuthCodeClient.mjs +57 -57
  133. package/dist/interaction_client/SilentAuthCodeClient.mjs.map +1 -1
  134. package/dist/interaction_client/SilentCacheClient.d.ts +24 -24
  135. package/dist/interaction_client/SilentCacheClient.mjs +61 -61
  136. package/dist/interaction_client/SilentCacheClient.mjs.map +1 -1
  137. package/dist/interaction_client/SilentIframeClient.d.ts +32 -32
  138. package/dist/interaction_client/SilentIframeClient.mjs +96 -96
  139. package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
  140. package/dist/interaction_client/SilentRefreshClient.d.ts +20 -20
  141. package/dist/interaction_client/SilentRefreshClient.mjs +43 -43
  142. package/dist/interaction_client/SilentRefreshClient.mjs.map +1 -1
  143. package/dist/interaction_client/StandardInteractionClient.d.ts +54 -54
  144. package/dist/interaction_client/StandardInteractionClient.mjs +222 -222
  145. package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
  146. package/dist/interaction_handler/InteractionHandler.d.ts +33 -33
  147. package/dist/interaction_handler/InteractionHandler.mjs +93 -93
  148. package/dist/interaction_handler/InteractionHandler.mjs.map +1 -1
  149. package/dist/interaction_handler/RedirectHandler.d.ts +32 -32
  150. package/dist/interaction_handler/RedirectHandler.mjs +134 -134
  151. package/dist/interaction_handler/RedirectHandler.mjs.map +1 -1
  152. package/dist/interaction_handler/SilentHandler.d.ts +13 -13
  153. package/dist/interaction_handler/SilentHandler.mjs +133 -133
  154. package/dist/interaction_handler/SilentHandler.mjs.map +1 -1
  155. package/dist/naa/AccountInfo.d.ts +11 -11
  156. package/dist/naa/AccountRequests.d.ts +9 -9
  157. package/dist/naa/AuthBridge.d.ts +8 -5
  158. package/dist/naa/AuthBridge.d.ts.map +1 -1
  159. package/dist/naa/BridgeCapabilities.d.ts +3 -3
  160. package/dist/naa/BridgeError.d.ts +9 -9
  161. package/dist/naa/BridgeError.mjs +7 -7
  162. package/dist/naa/BridgeError.mjs.map +1 -1
  163. package/dist/naa/BridgeProxy.d.ts +72 -72
  164. package/dist/naa/BridgeProxy.d.ts.map +1 -1
  165. package/dist/naa/BridgeProxy.mjs +153 -152
  166. package/dist/naa/BridgeProxy.mjs.map +1 -1
  167. package/dist/naa/BridgeRequest.d.ts +6 -6
  168. package/dist/naa/BridgeRequestEnvelope.d.ts +13 -13
  169. package/dist/naa/BridgeResponseEnvelope.d.ts +10 -10
  170. package/dist/naa/BridgeStatusCode.d.ts +10 -10
  171. package/dist/naa/BridgeStatusCode.mjs +15 -15
  172. package/dist/naa/BridgeStatusCode.mjs.map +1 -1
  173. package/dist/naa/IBridgeProxy.d.ts +12 -12
  174. package/dist/naa/InitializeBridgeResponse.d.ts +6 -6
  175. package/dist/naa/TokenRequest.d.ts +19 -19
  176. package/dist/naa/TokenResponse.d.ts +15 -15
  177. package/dist/naa/mapping/NestedAppAuthAdapter.d.ts +23 -23
  178. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +141 -141
  179. package/dist/naa/mapping/NestedAppAuthAdapter.mjs.map +1 -1
  180. package/dist/navigation/INavigationClient.d.ts +16 -16
  181. package/dist/navigation/NavigationClient.d.ts +22 -22
  182. package/dist/navigation/NavigationClient.mjs +40 -40
  183. package/dist/navigation/NavigationClient.mjs.map +1 -1
  184. package/dist/navigation/NavigationOptions.d.ts +12 -12
  185. package/dist/network/FetchClient.d.ts +26 -26
  186. package/dist/network/FetchClient.mjs +99 -99
  187. package/dist/network/FetchClient.mjs.map +1 -1
  188. package/dist/operatingcontext/BaseOperatingContext.d.ts +40 -40
  189. package/dist/operatingcontext/BaseOperatingContext.mjs +44 -44
  190. package/dist/operatingcontext/BaseOperatingContext.mjs.map +1 -1
  191. package/dist/operatingcontext/StandardOperatingContext.d.ts +25 -25
  192. package/dist/operatingcontext/StandardOperatingContext.mjs +43 -43
  193. package/dist/operatingcontext/StandardOperatingContext.mjs.map +1 -1
  194. package/dist/operatingcontext/TeamsAppOperatingContext.d.ts +32 -32
  195. package/dist/operatingcontext/TeamsAppOperatingContext.mjs +85 -85
  196. package/dist/operatingcontext/TeamsAppOperatingContext.mjs.map +1 -1
  197. package/dist/operatingcontext/UnknownOperatingContext.d.ts +25 -25
  198. package/dist/operatingcontext/UnknownOperatingContext.mjs +42 -42
  199. package/dist/operatingcontext/UnknownOperatingContext.mjs.map +1 -1
  200. package/dist/packageMetadata.d.ts +2 -2
  201. package/dist/packageMetadata.d.ts.map +1 -1
  202. package/dist/packageMetadata.mjs +4 -4
  203. package/dist/packageMetadata.mjs.map +1 -1
  204. package/dist/request/AuthorizationCodeRequest.d.ts +8 -8
  205. package/dist/request/AuthorizationUrlRequest.d.ts +8 -8
  206. package/dist/request/ClearCacheRequest.d.ts +10 -10
  207. package/dist/request/EndSessionPopupRequest.d.ts +18 -18
  208. package/dist/request/EndSessionRequest.d.ts +15 -15
  209. package/dist/request/PopupRequest.d.ts +34 -34
  210. package/dist/request/PopupWindowAttributes.d.ts +15 -15
  211. package/dist/request/RedirectRequest.d.ts +35 -35
  212. package/dist/request/SilentRequest.d.ts +32 -32
  213. package/dist/request/SsoSilentRequest.d.ts +29 -29
  214. package/dist/response/AuthenticationResult.d.ts +4 -4
  215. package/dist/response/ResponseHandler.d.ts +7 -7
  216. package/dist/response/ResponseHandler.mjs +36 -36
  217. package/dist/response/ResponseHandler.mjs.map +1 -1
  218. package/dist/telemetry/BrowserPerformanceClient.d.ts +36 -36
  219. package/dist/telemetry/BrowserPerformanceClient.mjs +125 -125
  220. package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -1
  221. package/dist/telemetry/BrowserPerformanceMeasurement.d.ts +21 -21
  222. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +92 -92
  223. package/dist/telemetry/BrowserPerformanceMeasurement.mjs.map +1 -1
  224. package/dist/utils/BrowserConstants.d.ts +176 -176
  225. package/dist/utils/BrowserConstants.mjs +204 -204
  226. package/dist/utils/BrowserConstants.mjs.map +1 -1
  227. package/dist/utils/BrowserProtocolUtils.d.ts +11 -11
  228. package/dist/utils/BrowserProtocolUtils.mjs +21 -21
  229. package/dist/utils/BrowserProtocolUtils.mjs.map +1 -1
  230. package/dist/utils/BrowserUtils.d.ts +56 -56
  231. package/dist/utils/BrowserUtils.mjs +125 -125
  232. package/dist/utils/BrowserUtils.mjs.map +1 -1
  233. package/lib/msal-browser.cjs +18217 -17928
  234. package/lib/msal-browser.cjs.map +1 -1
  235. package/lib/msal-browser.js +18217 -17928
  236. package/lib/msal-browser.js.map +1 -1
  237. package/lib/msal-browser.min.js +71 -68
  238. package/package.json +103 -102
  239. package/src/app/PublicClientApplication.ts +2 -1
  240. package/src/cache/BrowserCacheManager.ts +31 -4
  241. package/src/cache/DatabaseStorage.ts +1 -1
  242. package/src/cache/TokenCache.ts +33 -29
  243. package/src/config/Configuration.ts +1 -1
  244. package/src/controllers/ControllerFactory.ts +3 -5
  245. package/src/controllers/StandardController.ts +4 -6
  246. package/src/crypto/CryptoOps.ts +1 -1
  247. package/src/crypto/SignedHttpRequest.ts +1 -1
  248. package/src/index.ts +1 -0
  249. package/src/interaction_client/BaseInteractionClient.ts +2 -2
  250. package/src/interaction_client/NativeInteractionClient.ts +23 -20
  251. package/src/interaction_client/PopupClient.ts +1 -1
  252. package/src/interaction_client/RedirectClient.ts +3 -3
  253. package/src/interaction_client/SilentAuthCodeClient.ts +1 -1
  254. package/src/interaction_client/StandardInteractionClient.ts +1 -1
  255. package/src/interaction_handler/SilentHandler.ts +2 -2
  256. package/src/naa/AuthBridge.ts +3 -2
  257. package/src/naa/BridgeProxy.ts +6 -4
  258. package/src/packageMetadata.ts +1 -1
@@ -1,384 +1,396 @@
1
- import { CommonAuthorizationCodeRequest, ICrypto, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, CacheManager, ServerTelemetryEntity, ThrottlingEntity, Logger, AuthorityMetadataEntity, AccountInfo, ValidCredentialType, TokenKeys, CredentialType, IPerformanceClient, StaticAuthorityOptions } from "@azure/msal-common";
2
- import { CacheOptions } from "../config/Configuration";
3
- import { BrowserCacheLocation, InteractionType } from "../utils/BrowserConstants";
4
- import { MemoryStorage } from "./MemoryStorage";
5
- import { IWindowStorage } from "./IWindowStorage";
6
- import { NativeTokenRequest } from "../broker/nativeBroker/NativeRequest";
7
- import { AuthenticationResult } from "../response/AuthenticationResult";
8
- import { SilentRequest } from "../request/SilentRequest";
9
- import { SsoSilentRequest } from "../request/SsoSilentRequest";
10
- import { RedirectRequest } from "../request/RedirectRequest";
11
- import { PopupRequest } from "../request/PopupRequest";
12
- /**
13
- * This class implements the cache storage interface for MSAL through browser local or session storage.
14
- * Cookies are only used if storeAuthStateInCookie is true, and are only used for
15
- * parameters such as state and nonce, generally.
16
- */
17
- export declare class BrowserCacheManager extends CacheManager {
18
- protected cacheConfig: Required<CacheOptions>;
19
- protected browserStorage: IWindowStorage<string>;
20
- protected internalStorage: MemoryStorage<string>;
21
- protected temporaryCacheStorage: IWindowStorage<string>;
22
- protected logger: Logger;
23
- protected readonly COOKIE_LIFE_MULTIPLIER: number;
24
- constructor(clientId: string, cacheConfig: Required<CacheOptions>, cryptoImpl: ICrypto, logger: Logger, staticAuthorityOptions?: StaticAuthorityOptions);
25
- /**
26
- * Returns a window storage class implementing the IWindowStorage interface that corresponds to the configured cacheLocation.
27
- * @param cacheLocation
28
- */
29
- protected setupBrowserStorage(cacheLocation: BrowserCacheLocation | string): IWindowStorage<string>;
30
- /**
31
- * Returns a window storage class implementing the IWindowStorage interface that corresponds to the configured temporaryCacheLocation.
32
- * @param temporaryCacheLocation
33
- * @param cacheLocation
34
- */
35
- protected setupTemporaryCacheStorage(temporaryCacheLocation: BrowserCacheLocation | string, cacheLocation: BrowserCacheLocation | string): IWindowStorage<string>;
36
- /**
37
- * Migrate all old cache entries to new schema. No rollback supported.
38
- * @param storeAuthStateInCookie
39
- */
40
- protected migrateCacheEntries(): void;
41
- /**
42
- * Utility function to help with migration.
43
- * @param newKey
44
- * @param value
45
- * @param storeAuthStateInCookie
46
- */
47
- protected migrateCacheEntry(newKey: string, value: string | null): void;
48
- /**
49
- * Searches all cache entries for MSAL accounts and creates the account key map
50
- * This is used to migrate users from older versions of MSAL which did not create the map.
51
- * @returns
52
- */
53
- private createKeyMaps;
54
- /**
55
- * Parses passed value as JSON object, JSON.parse() will throw an error.
56
- * @param input
57
- */
58
- protected validateAndParseJson(jsonValue: string): object | null;
59
- /**
60
- * fetches the entry from the browser storage based off the key
61
- * @param key
62
- */
63
- getItem(key: string): string | null;
64
- /**
65
- * sets the entry in the browser storage
66
- * @param key
67
- * @param value
68
- */
69
- setItem(key: string, value: string): void;
70
- /**
71
- * fetch the account entity from the platform cache
72
- * @param accountKey
73
- */
74
- getAccount(accountKey: string): AccountEntity | null;
75
- /**
76
- * set account entity in the platform cache
77
- * @param account
78
- */
79
- setAccount(account: AccountEntity): void;
80
- /**
81
- * Returns the array of account keys currently cached
82
- * @returns
83
- */
84
- getAccountKeys(): Array<string>;
85
- /**
86
- * Add a new account to the key map
87
- * @param key
88
- */
89
- addAccountKeyToMap(key: string): void;
90
- /**
91
- * Remove an account from the key map
92
- * @param key
93
- */
94
- removeAccountKeyFromMap(key: string): void;
95
- /**
96
- * Extends inherited removeAccount function to include removal of the account key from the map
97
- * @param key
98
- */
99
- removeAccount(key: string): Promise<void>;
100
- /**
101
- * Removes given idToken from the cache and from the key map
102
- * @param key
103
- */
104
- removeIdToken(key: string): void;
105
- /**
106
- * Removes given accessToken from the cache and from the key map
107
- * @param key
108
- */
109
- removeAccessToken(key: string): Promise<void>;
110
- /**
111
- * Removes given refreshToken from the cache and from the key map
112
- * @param key
113
- */
114
- removeRefreshToken(key: string): void;
115
- /**
116
- * Gets the keys for the cached tokens associated with this clientId
117
- * @returns
118
- */
119
- getTokenKeys(): TokenKeys;
120
- /**
121
- * Adds the given key to the token key map
122
- * @param key
123
- * @param type
124
- */
125
- addTokenKey(key: string, type: CredentialType): void;
126
- /**
127
- * Removes the given key from the token key map
128
- * @param key
129
- * @param type
130
- */
131
- removeTokenKey(key: string, type: CredentialType): void;
132
- /**
133
- * generates idToken entity from a string
134
- * @param idTokenKey
135
- */
136
- getIdTokenCredential(idTokenKey: string): IdTokenEntity | null;
137
- /**
138
- * set IdToken credential to the platform cache
139
- * @param idToken
140
- */
141
- setIdTokenCredential(idToken: IdTokenEntity): void;
142
- /**
143
- * generates accessToken entity from a string
144
- * @param key
145
- */
146
- getAccessTokenCredential(accessTokenKey: string): AccessTokenEntity | null;
147
- /**
148
- * set accessToken credential to the platform cache
149
- * @param accessToken
150
- */
151
- setAccessTokenCredential(accessToken: AccessTokenEntity): void;
152
- /**
153
- * generates refreshToken entity from a string
154
- * @param refreshTokenKey
155
- */
156
- getRefreshTokenCredential(refreshTokenKey: string): RefreshTokenEntity | null;
157
- /**
158
- * set refreshToken credential to the platform cache
159
- * @param refreshToken
160
- */
161
- setRefreshTokenCredential(refreshToken: RefreshTokenEntity): void;
162
- /**
163
- * fetch appMetadata entity from the platform cache
164
- * @param appMetadataKey
165
- */
166
- getAppMetadata(appMetadataKey: string): AppMetadataEntity | null;
167
- /**
168
- * set appMetadata entity to the platform cache
169
- * @param appMetadata
170
- */
171
- setAppMetadata(appMetadata: AppMetadataEntity): void;
172
- /**
173
- * fetch server telemetry entity from the platform cache
174
- * @param serverTelemetryKey
175
- */
176
- getServerTelemetry(serverTelemetryKey: string): ServerTelemetryEntity | null;
177
- /**
178
- * set server telemetry entity to the platform cache
179
- * @param serverTelemetryKey
180
- * @param serverTelemetry
181
- */
182
- setServerTelemetry(serverTelemetryKey: string, serverTelemetry: ServerTelemetryEntity): void;
183
- /**
184
- *
185
- */
186
- getAuthorityMetadata(key: string): AuthorityMetadataEntity | null;
187
- /**
188
- *
189
- */
190
- getAuthorityMetadataKeys(): Array<string>;
191
- /**
192
- * Sets wrapper metadata in memory
193
- * @param wrapperSKU
194
- * @param wrapperVersion
195
- */
196
- setWrapperMetadata(wrapperSKU: string, wrapperVersion: string): void;
197
- /**
198
- * Returns wrapper metadata from in-memory storage
199
- */
200
- getWrapperMetadata(): [string, string];
201
- /**
202
- *
203
- * @param entity
204
- */
205
- setAuthorityMetadata(key: string, entity: AuthorityMetadataEntity): void;
206
- /**
207
- * Gets the active account
208
- */
209
- getActiveAccount(): AccountInfo | null;
210
- /**
211
- * Sets the active account's localAccountId in cache
212
- * @param account
213
- */
214
- setActiveAccount(account: AccountInfo | null): void;
215
- /**
216
- * fetch throttling entity from the platform cache
217
- * @param throttlingCacheKey
218
- */
219
- getThrottlingCache(throttlingCacheKey: string): ThrottlingEntity | null;
220
- /**
221
- * set throttling entity to the platform cache
222
- * @param throttlingCacheKey
223
- * @param throttlingCache
224
- */
225
- setThrottlingCache(throttlingCacheKey: string, throttlingCache: ThrottlingEntity): void;
226
- /**
227
- * Gets cache item with given key.
228
- * Will retrieve from cookies if storeAuthStateInCookie is set to true.
229
- * @param key
230
- */
231
- getTemporaryCache(cacheKey: string, generateKey?: boolean): string | null;
232
- /**
233
- * Sets the cache item with the key and value given.
234
- * Stores in cookie if storeAuthStateInCookie is set to true.
235
- * This can cause cookie overflow if used incorrectly.
236
- * @param key
237
- * @param value
238
- */
239
- setTemporaryCache(cacheKey: string, value: string, generateKey?: boolean): void;
240
- /**
241
- * Removes the cache item with the given key.
242
- * Will also clear the cookie item if storeAuthStateInCookie is set to true.
243
- * @param key
244
- */
245
- removeItem(key: string): void;
246
- /**
247
- * Checks whether key is in cache.
248
- * @param key
249
- */
250
- containsKey(key: string): boolean;
251
- /**
252
- * Gets all keys in window.
253
- */
254
- getKeys(): string[];
255
- /**
256
- * Clears all cache entries created by MSAL.
257
- */
258
- clear(): Promise<void>;
259
- /**
260
- * Clears all access tokes that have claims prior to saving the current one
261
- * @param performanceClient {IPerformanceClient}
262
- * @returns
263
- */
264
- clearTokensAndKeysWithClaims(performanceClient: IPerformanceClient): Promise<void>;
265
- /**
266
- * Add value to cookies
267
- * @param cookieName
268
- * @param cookieValue
269
- * @param expires
270
- */
271
- setItemCookie(cookieName: string, cookieValue: string, expires?: number): void;
272
- /**
273
- * Get one item by key from cookies
274
- * @param cookieName
275
- */
276
- getItemCookie(cookieName: string): string;
277
- /**
278
- * Clear all msal-related cookies currently set in the browser. Should only be used to clear temporary cache items.
279
- */
280
- clearMsalCookies(): void;
281
- /**
282
- * Clear an item in the cookies by key
283
- * @param cookieName
284
- */
285
- clearItemCookie(cookieName: string): void;
286
- /**
287
- * Get cookie expiration time
288
- * @param cookieLifeDays
289
- */
290
- getCookieExpirationTime(cookieLifeDays: number): string;
291
- /**
292
- * Gets the cache object referenced by the browser
293
- */
294
- getCache(): object;
295
- /**
296
- * interface compat, we cannot overwrite browser cache; Functionality is supported by individual entities in browser
297
- */
298
- setCache(): void;
299
- /**
300
- * Prepend msal.<client-id> to each key; Skip for any JSON object as Key (defined schemas do not need the key appended: AccessToken Keys or the upcoming schema)
301
- * @param key
302
- * @param addInstanceId
303
- */
304
- generateCacheKey(key: string): string;
305
- /**
306
- * Create authorityKey to cache authority
307
- * @param state
308
- */
309
- generateAuthorityKey(stateString: string): string;
310
- /**
311
- * Create Nonce key to cache nonce
312
- * @param state
313
- */
314
- generateNonceKey(stateString: string): string;
315
- /**
316
- * Creates full cache key for the request state
317
- * @param stateString State string for the request
318
- */
319
- generateStateKey(stateString: string): string;
320
- /**
321
- * Gets the cached authority based on the cached state. Returns empty if no cached state found.
322
- */
323
- getCachedAuthority(cachedState: string): string | null;
324
- /**
325
- * Updates account, authority, and state in cache
326
- * @param serverAuthenticationRequest
327
- * @param account
328
- */
329
- updateCacheEntries(state: string, nonce: string, authorityInstance: string, loginHint: string, account: AccountInfo | null): void;
330
- /**
331
- * Reset all temporary cache items
332
- * @param state
333
- */
334
- resetRequestCache(state: string): void;
335
- /**
336
- * Removes temporary cache for the provided state
337
- * @param stateString
338
- */
339
- cleanRequestByState(stateString: string): void;
340
- /**
341
- * Looks in temporary cache for any state values with the provided interactionType and removes all temporary cache items for that state
342
- * Used in scenarios where temp cache needs to be cleaned but state is not known, such as clicking browser back button.
343
- * @param interactionType
344
- */
345
- cleanRequestByInteractionType(interactionType: InteractionType): void;
346
- cacheCodeRequest(authCodeRequest: CommonAuthorizationCodeRequest): void;
347
- /**
348
- * Gets the token exchange parameters from the cache. Throws an error if nothing is found.
349
- */
350
- getCachedRequest(state: string): CommonAuthorizationCodeRequest;
351
- /**
352
- * Gets cached native request for redirect flows
353
- */
354
- getCachedNativeRequest(): NativeTokenRequest | null;
355
- isInteractionInProgress(matchClientId?: boolean): boolean;
356
- getInteractionInProgress(): string | null;
357
- setInteractionInProgress(inProgress: boolean): void;
358
- /**
359
- * Returns username retrieved from ADAL or MSAL v1 idToken
360
- * @deprecated
361
- */
362
- getLegacyLoginHint(): string | null;
363
- /**
364
- * Updates a credential's cache key if the current cache key is outdated
365
- */
366
- updateCredentialCacheKey(currentCacheKey: string, credential: ValidCredentialType): string;
367
- /**
368
- * Returns application id as redirect context during AcquireTokenRedirect flow.
369
- */
370
- getRedirectRequestContext(): string | null;
371
- /**
372
- * Sets application id as the redirect context during AcquireTokenRedirect flow.
373
- * @param value
374
- */
375
- setRedirectRequestContext(value: string): void;
376
- /**
377
- * Builds credential entities from AuthenticationResult object and saves the resulting credentials to the cache
378
- * @param result
379
- * @param request
380
- */
381
- hydrateCache(result: AuthenticationResult, request: SilentRequest | SsoSilentRequest | RedirectRequest | PopupRequest): Promise<void>;
382
- }
383
- export declare const DEFAULT_BROWSER_CACHE_MANAGER: (clientId: string, logger: Logger) => BrowserCacheManager;
1
+ import { CommonAuthorizationCodeRequest, ICrypto, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, CacheManager, ServerTelemetryEntity, ThrottlingEntity, Logger, AuthorityMetadataEntity, AccountInfo, ValidCredentialType, TokenKeys, CredentialType, IPerformanceClient, StaticAuthorityOptions } from "@azure/msal-common";
2
+ import { CacheOptions } from "../config/Configuration";
3
+ import { BrowserCacheLocation, InteractionType } from "../utils/BrowserConstants";
4
+ import { MemoryStorage } from "./MemoryStorage";
5
+ import { IWindowStorage } from "./IWindowStorage";
6
+ import { NativeTokenRequest } from "../broker/nativeBroker/NativeRequest";
7
+ import { AuthenticationResult } from "../response/AuthenticationResult";
8
+ import { SilentRequest } from "../request/SilentRequest";
9
+ import { SsoSilentRequest } from "../request/SsoSilentRequest";
10
+ import { RedirectRequest } from "../request/RedirectRequest";
11
+ import { PopupRequest } from "../request/PopupRequest";
12
+ /**
13
+ * This class implements the cache storage interface for MSAL through browser local or session storage.
14
+ * Cookies are only used if storeAuthStateInCookie is true, and are only used for
15
+ * parameters such as state and nonce, generally.
16
+ */
17
+ export declare class BrowserCacheManager extends CacheManager {
18
+ protected cacheConfig: Required<CacheOptions>;
19
+ protected browserStorage: IWindowStorage<string>;
20
+ protected internalStorage: MemoryStorage<string>;
21
+ protected temporaryCacheStorage: IWindowStorage<string>;
22
+ protected logger: Logger;
23
+ protected readonly COOKIE_LIFE_MULTIPLIER: number;
24
+ constructor(clientId: string, cacheConfig: Required<CacheOptions>, cryptoImpl: ICrypto, logger: Logger, staticAuthorityOptions?: StaticAuthorityOptions);
25
+ /**
26
+ * Returns a window storage class implementing the IWindowStorage interface that corresponds to the configured cacheLocation.
27
+ * @param cacheLocation
28
+ */
29
+ protected setupBrowserStorage(cacheLocation: BrowserCacheLocation | string): IWindowStorage<string>;
30
+ /**
31
+ * Returns a window storage class implementing the IWindowStorage interface that corresponds to the configured temporaryCacheLocation.
32
+ * @param temporaryCacheLocation
33
+ * @param cacheLocation
34
+ */
35
+ protected setupTemporaryCacheStorage(temporaryCacheLocation: BrowserCacheLocation | string, cacheLocation: BrowserCacheLocation | string): IWindowStorage<string>;
36
+ /**
37
+ * Migrate all old cache entries to new schema. No rollback supported.
38
+ * @param storeAuthStateInCookie
39
+ */
40
+ protected migrateCacheEntries(): void;
41
+ /**
42
+ * Utility function to help with migration.
43
+ * @param newKey
44
+ * @param value
45
+ * @param storeAuthStateInCookie
46
+ */
47
+ protected migrateCacheEntry(newKey: string, value: string | null): void;
48
+ /**
49
+ * Searches all cache entries for MSAL accounts and creates the account key map
50
+ * This is used to migrate users from older versions of MSAL which did not create the map.
51
+ * @returns
52
+ */
53
+ private createKeyMaps;
54
+ /**
55
+ * Parses passed value as JSON object, JSON.parse() will throw an error.
56
+ * @param input
57
+ */
58
+ protected validateAndParseJson(jsonValue: string): object | null;
59
+ /**
60
+ * fetches the entry from the browser storage based off the key
61
+ * @param key
62
+ */
63
+ getItem(key: string): string | null;
64
+ /**
65
+ * sets the entry in the browser storage
66
+ * @param key
67
+ * @param value
68
+ */
69
+ setItem(key: string, value: string): void;
70
+ /**
71
+ * fetch the account entity from the platform cache
72
+ * @param accountKey
73
+ */
74
+ getAccount(accountKey: string, logger?: Logger): AccountEntity | null;
75
+ /**
76
+ * Reads account from cache, deserializes it into an account entity and returns it.
77
+ * If account is not found from the key, returns null and removes key from map.
78
+ * @param accountKey
79
+ * @returns
80
+ */
81
+ getCachedAccountEntity(accountKey: string): AccountEntity | null;
82
+ /**
83
+ * set account entity in the platform cache
84
+ * @param account
85
+ */
86
+ setAccount(account: AccountEntity): void;
87
+ /**
88
+ * Returns the array of account keys currently cached
89
+ * @returns
90
+ */
91
+ getAccountKeys(): Array<string>;
92
+ /**
93
+ * Add a new account to the key map
94
+ * @param key
95
+ */
96
+ addAccountKeyToMap(key: string): void;
97
+ /**
98
+ * Remove an account from the key map
99
+ * @param key
100
+ */
101
+ removeAccountKeyFromMap(key: string): void;
102
+ /**
103
+ * Extends inherited removeAccount function to include removal of the account key from the map
104
+ * @param key
105
+ */
106
+ removeAccount(key: string): Promise<void>;
107
+ /**
108
+ * Remove account entity from the platform cache if it's outdated
109
+ * @param accountKey
110
+ */
111
+ removeOutdatedAccount(accountKey: string): void;
112
+ /**
113
+ * Removes given idToken from the cache and from the key map
114
+ * @param key
115
+ */
116
+ removeIdToken(key: string): void;
117
+ /**
118
+ * Removes given accessToken from the cache and from the key map
119
+ * @param key
120
+ */
121
+ removeAccessToken(key: string): Promise<void>;
122
+ /**
123
+ * Removes given refreshToken from the cache and from the key map
124
+ * @param key
125
+ */
126
+ removeRefreshToken(key: string): void;
127
+ /**
128
+ * Gets the keys for the cached tokens associated with this clientId
129
+ * @returns
130
+ */
131
+ getTokenKeys(): TokenKeys;
132
+ /**
133
+ * Adds the given key to the token key map
134
+ * @param key
135
+ * @param type
136
+ */
137
+ addTokenKey(key: string, type: CredentialType): void;
138
+ /**
139
+ * Removes the given key from the token key map
140
+ * @param key
141
+ * @param type
142
+ */
143
+ removeTokenKey(key: string, type: CredentialType): void;
144
+ /**
145
+ * generates idToken entity from a string
146
+ * @param idTokenKey
147
+ */
148
+ getIdTokenCredential(idTokenKey: string): IdTokenEntity | null;
149
+ /**
150
+ * set IdToken credential to the platform cache
151
+ * @param idToken
152
+ */
153
+ setIdTokenCredential(idToken: IdTokenEntity): void;
154
+ /**
155
+ * generates accessToken entity from a string
156
+ * @param key
157
+ */
158
+ getAccessTokenCredential(accessTokenKey: string): AccessTokenEntity | null;
159
+ /**
160
+ * set accessToken credential to the platform cache
161
+ * @param accessToken
162
+ */
163
+ setAccessTokenCredential(accessToken: AccessTokenEntity): void;
164
+ /**
165
+ * generates refreshToken entity from a string
166
+ * @param refreshTokenKey
167
+ */
168
+ getRefreshTokenCredential(refreshTokenKey: string): RefreshTokenEntity | null;
169
+ /**
170
+ * set refreshToken credential to the platform cache
171
+ * @param refreshToken
172
+ */
173
+ setRefreshTokenCredential(refreshToken: RefreshTokenEntity): void;
174
+ /**
175
+ * fetch appMetadata entity from the platform cache
176
+ * @param appMetadataKey
177
+ */
178
+ getAppMetadata(appMetadataKey: string): AppMetadataEntity | null;
179
+ /**
180
+ * set appMetadata entity to the platform cache
181
+ * @param appMetadata
182
+ */
183
+ setAppMetadata(appMetadata: AppMetadataEntity): void;
184
+ /**
185
+ * fetch server telemetry entity from the platform cache
186
+ * @param serverTelemetryKey
187
+ */
188
+ getServerTelemetry(serverTelemetryKey: string): ServerTelemetryEntity | null;
189
+ /**
190
+ * set server telemetry entity to the platform cache
191
+ * @param serverTelemetryKey
192
+ * @param serverTelemetry
193
+ */
194
+ setServerTelemetry(serverTelemetryKey: string, serverTelemetry: ServerTelemetryEntity): void;
195
+ /**
196
+ *
197
+ */
198
+ getAuthorityMetadata(key: string): AuthorityMetadataEntity | null;
199
+ /**
200
+ *
201
+ */
202
+ getAuthorityMetadataKeys(): Array<string>;
203
+ /**
204
+ * Sets wrapper metadata in memory
205
+ * @param wrapperSKU
206
+ * @param wrapperVersion
207
+ */
208
+ setWrapperMetadata(wrapperSKU: string, wrapperVersion: string): void;
209
+ /**
210
+ * Returns wrapper metadata from in-memory storage
211
+ */
212
+ getWrapperMetadata(): [string, string];
213
+ /**
214
+ *
215
+ * @param entity
216
+ */
217
+ setAuthorityMetadata(key: string, entity: AuthorityMetadataEntity): void;
218
+ /**
219
+ * Gets the active account
220
+ */
221
+ getActiveAccount(): AccountInfo | null;
222
+ /**
223
+ * Sets the active account's localAccountId in cache
224
+ * @param account
225
+ */
226
+ setActiveAccount(account: AccountInfo | null): void;
227
+ /**
228
+ * fetch throttling entity from the platform cache
229
+ * @param throttlingCacheKey
230
+ */
231
+ getThrottlingCache(throttlingCacheKey: string): ThrottlingEntity | null;
232
+ /**
233
+ * set throttling entity to the platform cache
234
+ * @param throttlingCacheKey
235
+ * @param throttlingCache
236
+ */
237
+ setThrottlingCache(throttlingCacheKey: string, throttlingCache: ThrottlingEntity): void;
238
+ /**
239
+ * Gets cache item with given key.
240
+ * Will retrieve from cookies if storeAuthStateInCookie is set to true.
241
+ * @param key
242
+ */
243
+ getTemporaryCache(cacheKey: string, generateKey?: boolean): string | null;
244
+ /**
245
+ * Sets the cache item with the key and value given.
246
+ * Stores in cookie if storeAuthStateInCookie is set to true.
247
+ * This can cause cookie overflow if used incorrectly.
248
+ * @param key
249
+ * @param value
250
+ */
251
+ setTemporaryCache(cacheKey: string, value: string, generateKey?: boolean): void;
252
+ /**
253
+ * Removes the cache item with the given key.
254
+ * Will also clear the cookie item if storeAuthStateInCookie is set to true.
255
+ * @param key
256
+ */
257
+ removeItem(key: string): void;
258
+ /**
259
+ * Checks whether key is in cache.
260
+ * @param key
261
+ */
262
+ containsKey(key: string): boolean;
263
+ /**
264
+ * Gets all keys in window.
265
+ */
266
+ getKeys(): string[];
267
+ /**
268
+ * Clears all cache entries created by MSAL.
269
+ */
270
+ clear(): Promise<void>;
271
+ /**
272
+ * Clears all access tokes that have claims prior to saving the current one
273
+ * @param performanceClient {IPerformanceClient}
274
+ * @returns
275
+ */
276
+ clearTokensAndKeysWithClaims(performanceClient: IPerformanceClient): Promise<void>;
277
+ /**
278
+ * Add value to cookies
279
+ * @param cookieName
280
+ * @param cookieValue
281
+ * @param expires
282
+ */
283
+ setItemCookie(cookieName: string, cookieValue: string, expires?: number): void;
284
+ /**
285
+ * Get one item by key from cookies
286
+ * @param cookieName
287
+ */
288
+ getItemCookie(cookieName: string): string;
289
+ /**
290
+ * Clear all msal-related cookies currently set in the browser. Should only be used to clear temporary cache items.
291
+ */
292
+ clearMsalCookies(): void;
293
+ /**
294
+ * Clear an item in the cookies by key
295
+ * @param cookieName
296
+ */
297
+ clearItemCookie(cookieName: string): void;
298
+ /**
299
+ * Get cookie expiration time
300
+ * @param cookieLifeDays
301
+ */
302
+ getCookieExpirationTime(cookieLifeDays: number): string;
303
+ /**
304
+ * Gets the cache object referenced by the browser
305
+ */
306
+ getCache(): object;
307
+ /**
308
+ * interface compat, we cannot overwrite browser cache; Functionality is supported by individual entities in browser
309
+ */
310
+ setCache(): void;
311
+ /**
312
+ * Prepend msal.<client-id> to each key; Skip for any JSON object as Key (defined schemas do not need the key appended: AccessToken Keys or the upcoming schema)
313
+ * @param key
314
+ * @param addInstanceId
315
+ */
316
+ generateCacheKey(key: string): string;
317
+ /**
318
+ * Create authorityKey to cache authority
319
+ * @param state
320
+ */
321
+ generateAuthorityKey(stateString: string): string;
322
+ /**
323
+ * Create Nonce key to cache nonce
324
+ * @param state
325
+ */
326
+ generateNonceKey(stateString: string): string;
327
+ /**
328
+ * Creates full cache key for the request state
329
+ * @param stateString State string for the request
330
+ */
331
+ generateStateKey(stateString: string): string;
332
+ /**
333
+ * Gets the cached authority based on the cached state. Returns empty if no cached state found.
334
+ */
335
+ getCachedAuthority(cachedState: string): string | null;
336
+ /**
337
+ * Updates account, authority, and state in cache
338
+ * @param serverAuthenticationRequest
339
+ * @param account
340
+ */
341
+ updateCacheEntries(state: string, nonce: string, authorityInstance: string, loginHint: string, account: AccountInfo | null): void;
342
+ /**
343
+ * Reset all temporary cache items
344
+ * @param state
345
+ */
346
+ resetRequestCache(state: string): void;
347
+ /**
348
+ * Removes temporary cache for the provided state
349
+ * @param stateString
350
+ */
351
+ cleanRequestByState(stateString: string): void;
352
+ /**
353
+ * Looks in temporary cache for any state values with the provided interactionType and removes all temporary cache items for that state
354
+ * Used in scenarios where temp cache needs to be cleaned but state is not known, such as clicking browser back button.
355
+ * @param interactionType
356
+ */
357
+ cleanRequestByInteractionType(interactionType: InteractionType): void;
358
+ cacheCodeRequest(authCodeRequest: CommonAuthorizationCodeRequest): void;
359
+ /**
360
+ * Gets the token exchange parameters from the cache. Throws an error if nothing is found.
361
+ */
362
+ getCachedRequest(state: string): CommonAuthorizationCodeRequest;
363
+ /**
364
+ * Gets cached native request for redirect flows
365
+ */
366
+ getCachedNativeRequest(): NativeTokenRequest | null;
367
+ isInteractionInProgress(matchClientId?: boolean): boolean;
368
+ getInteractionInProgress(): string | null;
369
+ setInteractionInProgress(inProgress: boolean): void;
370
+ /**
371
+ * Returns username retrieved from ADAL or MSAL v1 idToken
372
+ * @deprecated
373
+ */
374
+ getLegacyLoginHint(): string | null;
375
+ /**
376
+ * Updates a credential's cache key if the current cache key is outdated
377
+ */
378
+ updateCredentialCacheKey(currentCacheKey: string, credential: ValidCredentialType): string;
379
+ /**
380
+ * Returns application id as redirect context during AcquireTokenRedirect flow.
381
+ */
382
+ getRedirectRequestContext(): string | null;
383
+ /**
384
+ * Sets application id as the redirect context during AcquireTokenRedirect flow.
385
+ * @param value
386
+ */
387
+ setRedirectRequestContext(value: string): void;
388
+ /**
389
+ * Builds credential entities from AuthenticationResult object and saves the resulting credentials to the cache
390
+ * @param result
391
+ * @param request
392
+ */
393
+ hydrateCache(result: AuthenticationResult, request: SilentRequest | SsoSilentRequest | RedirectRequest | PopupRequest): Promise<void>;
394
+ }
395
+ export declare const DEFAULT_BROWSER_CACHE_MANAGER: (clientId: string, logger: Logger) => BrowserCacheManager;
384
396
  //# sourceMappingURL=BrowserCacheManager.d.ts.map