@nibssplc/cams-sdk-react 0.0.1-beta.27 → 0.0.1-beta.28

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
@@ -16713,16 +16713,15 @@ function useCAMSMSALAuth(options) {
16713
16713
  prompt: options.prompt || "select_account",
16714
16714
  })
16715
16715
  .then(function (response) {
16716
- var _a, _b;
16716
+ var _a;
16717
16717
  setToken(response.accessToken);
16718
16718
  setAccessToken(response.accessToken);
16719
16719
  setIdToken(response.idToken);
16720
16720
  setIsMFAPending(true);
16721
- (_a = options.onMFARequired) === null || _a === void 0 ? void 0 : _a.call(options, response.accessToken, account);
16722
16721
  if (typeof window !== "undefined") {
16723
16722
  window.location.href = options.mfaUrl;
16724
16723
  }
16725
- (_b = options.onAuthSuccess) === null || _b === void 0 ? void 0 : _b.call(options, response.accessToken);
16724
+ (_a = options.onAuthSuccess) === null || _a === void 0 ? void 0 : _a.call(options, response.accessToken);
16726
16725
  })
16727
16726
  .catch(function (err) {
16728
16727
  var _a;