authscape 1.0.694 → 1.0.695

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
@@ -16,6 +16,7 @@ var _router = _interopRequireDefault(require("next/router"));
16
16
  var _ga4React = _interopRequireDefault(require("ga-4-react"));
17
17
  var _zustand = require("zustand");
18
18
  var _reactMicrosoftClarity = require("react-microsoft-clarity");
19
+ var _authscape = require("authscape");
19
20
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
20
21
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
21
22
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
@@ -330,7 +331,7 @@ function AuthScapeApp(_ref) {
330
331
  }
331
332
  (0, _react.useEffect)(function () {
332
333
  if (signedInUserState == null && enforceLoggedIn && pathname != "/signin-oidc" && frontEndLoadedState == true) {
333
- authService().login();
334
+ (0, _authscape.authService)().login();
334
335
  }
335
336
  }, [signedInUserState, enforceLoggedIn, frontEndLoadedState]);
336
337
  var setIsLoading = function setIsLoading(isLoading) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.694",
3
+ "version": "1.0.695",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,6 +9,7 @@ import Router from 'next/router';
9
9
  import GA4React from 'ga-4-react';
10
10
  import { create } from 'zustand'
11
11
  import { clarity } from 'react-microsoft-clarity';
12
+ import { authService } from 'authscape';
12
13
 
13
14
  export function AuthScapeApp ({Component, layout, loadingLayout, pageProps, muiTheme = {}, store={}, enforceLoggedIn = false, enableAuth = true}) {
14
15