nectiasw 0.0.85 → 0.0.86

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.es.js CHANGED
@@ -52685,7 +52685,6 @@ const MicrofrontHost = React__default.memo((props) => {
52685
52685
  includeNavbarDropdown
52686
52686
  } = props;
52687
52687
  const dismiss = React__default.useRef(true);
52688
- const authentication = React__default.useRef(props == null ? void 0 : props.onAuthCallback);
52689
52688
  const [signal, setSignal] = React__default.useState({});
52690
52689
  const handleAuthCallback = React__default.useCallback(async () => {
52691
52690
  var _a3;
@@ -52694,7 +52693,8 @@ const MicrofrontHost = React__default.memo((props) => {
52694
52693
  loading: true
52695
52694
  }));
52696
52695
  try {
52697
- const data = await ((_a3 = authentication == null ? void 0 : authentication.current) == null ? void 0 : _a3.call(authentication));
52696
+ const data = await ((_a3 = props == null ? void 0 : props.onAuthCallback) == null ? void 0 : _a3.call(props));
52697
+ console.log("data", data);
52698
52698
  setSignal((signal2) => {
52699
52699
  var _a4, _b2, _c2, _d;
52700
52700
  return {
@@ -52720,7 +52720,7 @@ const MicrofrontHost = React__default.memo((props) => {
52720
52720
  loading: false
52721
52721
  }));
52722
52722
  }
52723
- }, []);
52723
+ }, [props == null ? void 0 : props.onAuthCallback]);
52724
52724
  React__default.useEffect(() => {
52725
52725
  handleAuthCallback();
52726
52726
  }, [handleAuthCallback]);