@nibssplc/cams-sdk-react 0.0.1-beta.44 → 0.0.1-beta.45

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/index.esm.js CHANGED
@@ -17396,17 +17396,13 @@ function CAMSMSALProviderInner(_a) {
17396
17396
  localStorage.setItem(auth.storageKey, JSON.stringify({
17397
17397
  accessToken: auth.accessToken,
17398
17398
  idToken: auth.idToken,
17399
+ appCode: auth.appCode
17399
17400
  }));
17400
17401
  }
17401
- }, [auth.accessToken, auth.idToken, auth.storageKey]);
17402
+ }, [auth.accessToken, auth.idToken, auth.appCode, auth.storageKey]);
17402
17403
  // Persist profile separately
17403
17404
  useEffect(function () {
17404
17405
  if (typeof window !== "undefined") {
17405
- // if (userProfile) {
17406
- // localStorage.setItem(profileStorageKey, JSO N.stringify(userProfile));
17407
- // } else {
17408
- // localStorage.removeItem(profileStorageKey);
17409
- // }
17410
17406
  if (userProfile) {
17411
17407
  setCookie(profileStorageKey, JSON.stringify(userProfile), 1); // Store for 1 day
17412
17408
  }