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

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.cjs.js CHANGED
@@ -17415,17 +17415,13 @@ function CAMSMSALProviderInner(_a) {
17415
17415
  localStorage.setItem(auth.storageKey, JSON.stringify({
17416
17416
  accessToken: auth.accessToken,
17417
17417
  idToken: auth.idToken,
17418
+ appCode: auth.appCode
17418
17419
  }));
17419
17420
  }
17420
17421
  }, [auth.accessToken, auth.idToken, auth.storageKey]);
17421
17422
  // Persist profile separately
17422
17423
  React__default.useEffect(function () {
17423
17424
  if (typeof window !== "undefined") {
17424
- // if (userProfile) {
17425
- // localStorage.setItem(profileStorageKey, JSO N.stringify(userProfile));
17426
- // } else {
17427
- // localStorage.removeItem(profileStorageKey);
17428
- // }
17429
17425
  if (userProfile) {
17430
17426
  setCookie(profileStorageKey, JSON.stringify(userProfile), 1); // Store for 1 day
17431
17427
  }