@elliemae/pui-app-sdk 5.10.6 → 5.10.8

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.
@@ -56,8 +56,7 @@ const handleFailure = (error) => {
56
56
  }).catch((exception) => Promise.reject(exception));
57
57
  }
58
58
  if (import_props.httpClientProps.endSession) {
59
- import_props.httpClientProps.endSession({ ...(0, import_loginParams.getLoginParams)(), skipRevoke: true }).catch(() => {
60
- });
59
+ return import_props.httpClientProps.endSession({ ...(0, import_loginParams.getLoginParams)(), skipRevoke: true }).then(() => Promise.reject(error)).catch(() => Promise.reject(error));
61
60
  }
62
61
  }
63
62
  return Promise.reject(error);
@@ -57,7 +57,7 @@ const RequireAuth = ({
57
57
  const userAuthorized = (0, import_auth2.isUserAuthorized)();
58
58
  if (userAuthorized) {
59
59
  (0, import_loginParams.setLoginParams)({ clientId, scope, responseType });
60
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
60
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AuthManager, { children });
61
61
  }
62
62
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AuthManager, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_login.Login, { clientId, scope, responseType, children }) });
63
63
  };
@@ -21,8 +21,7 @@ const handleFailure = (error) => {
21
21
  }).catch((exception) => Promise.reject(exception));
22
22
  }
23
23
  if (httpClientProps.endSession) {
24
- httpClientProps.endSession({ ...getLoginParams(), skipRevoke: true }).catch(() => {
25
- });
24
+ return httpClientProps.endSession({ ...getLoginParams(), skipRevoke: true }).then(() => Promise.reject(error)).catch(() => Promise.reject(error));
26
25
  }
27
26
  }
28
27
  return Promise.reject(error);
@@ -1,4 +1,4 @@
1
- import { Fragment, jsx } from "react/jsx-runtime";
1
+ import { jsx } from "react/jsx-runtime";
2
2
  import { createManager } from "redux-injectors";
3
3
  import enums from "../utils/constants.js";
4
4
  import { authReducer } from "../data/auth/reducer.js";
@@ -24,7 +24,7 @@ const RequireAuth = ({
24
24
  const userAuthorized = isUserAuthorized();
25
25
  if (userAuthorized) {
26
26
  setLoginParams({ clientId, scope, responseType });
27
- return /* @__PURE__ */ jsx(Fragment, { children });
27
+ return /* @__PURE__ */ jsx(AuthManager, { children });
28
28
  }
29
29
  return /* @__PURE__ */ jsx(AuthManager, { children: /* @__PURE__ */ jsx(Login, { clientId, scope, responseType, children }) });
30
30
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-app-sdk",
3
- "version": "5.10.6",
3
+ "version": "5.10.8",
4
4
  "description": "ICE MT UI Platform Application SDK ",
5
5
  "sideEffects": [
6
6
  "*.css",