authscape 1.0.424 → 1.0.426

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/index.js CHANGED
@@ -181,10 +181,10 @@ function AuthScapeApp(_ref) {
181
181
  }
182
182
  }
183
183
  (0, _react.useEffect)(function () {
184
- if (signedInUserState == null && enforceLoggedIn && pathname != "/signin-oidc" && frontEndLoaded.current == true) {
184
+ if (signedInUserState == null && enforceLoggedIn && pathname != "/signin-oidc" && frontEndLoadedState == true) {
185
185
  authService().login();
186
186
  }
187
- }, [signedInUserState, enforceLoggedIn]);
187
+ }, [signedInUserState, enforceLoggedIn, frontEndLoadedState]);
188
188
  return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_head["default"], null, /*#__PURE__*/_react["default"].createElement("meta", {
189
189
  name: "viewport",
190
190
  content: "width=device-width, initial-scale=0.86, maximum-scale=5.0, minimum-scale=0.86"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.424",
3
+ "version": "1.0.426",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -135,12 +135,12 @@ export function AuthScapeApp ({Component, layout, pageProps, muiTheme = {}, enfo
135
135
 
136
136
  useEffect(() => {
137
137
 
138
- if (signedInUserState == null && enforceLoggedIn && pathname != "/signin-oidc" && frontEndLoaded.current == true)
138
+ if (signedInUserState == null && enforceLoggedIn && pathname != "/signin-oidc" && frontEndLoadedState == true)
139
139
  {
140
140
  authService().login();
141
141
  }
142
142
 
143
- }, [signedInUserState, enforceLoggedIn]);
143
+ }, [signedInUserState, enforceLoggedIn, frontEndLoadedState]);
144
144
 
145
145
  return (
146
146
  <>