@elliemae/pui-app-sdk 3.0.0-beta.15 → 3.0.0-beta.16
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.
|
@@ -48,7 +48,7 @@ const RequireAuth = ({
|
|
|
48
48
|
(0, import_redux_injectors.useInjectSaga)({ key, saga: import_auth.authentication });
|
|
49
49
|
const userAuthorized = (0, import_auth2.isUserAuthorized)();
|
|
50
50
|
if (userAuthorized) {
|
|
51
|
-
return children;
|
|
51
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
52
52
|
}
|
|
53
53
|
const renderLogin = () => /* @__PURE__ */ React.createElement(import_login.Login, {
|
|
54
54
|
clientId,
|
|
@@ -17,7 +17,7 @@ const RequireAuth = ({
|
|
|
17
17
|
useInjectSaga({ key, saga: authentication });
|
|
18
18
|
const userAuthorized = isUserAuthorized();
|
|
19
19
|
if (userAuthorized) {
|
|
20
|
-
return children;
|
|
20
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
21
21
|
}
|
|
22
22
|
const renderLogin = () => /* @__PURE__ */ React.createElement(Login, {
|
|
23
23
|
clientId,
|
|
@@ -5,4 +5,4 @@ export interface RequireAuthProps {
|
|
|
5
5
|
responseType?: string;
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare const RequireAuth: ({ children, clientId, scope, responseType, }: RequireAuthProps) =>
|
|
8
|
+
export declare const RequireAuth: ({ children, clientId, scope, responseType, }: RequireAuthProps) => JSX.Element;
|