authscape 1.0.694 → 1.0.696
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) {
|
|
@@ -9199,6 +9200,12 @@ function _PrivateLabelPageModule() {
|
|
|
9199
9200
|
if (dataResponse.companyName != null) {
|
|
9200
9201
|
data.companyName = dataResponse.companyName;
|
|
9201
9202
|
}
|
|
9203
|
+
if (dataResponse.googleAnalytics4Code != null) {
|
|
9204
|
+
data.googleAnalytics4Code = dataResponse.googleAnalytics4Code;
|
|
9205
|
+
}
|
|
9206
|
+
if (dataResponse.microsoftClarityCode != null) {
|
|
9207
|
+
data.microsoftClarityCode = dataResponse.microsoftClarityCode;
|
|
9208
|
+
}
|
|
9202
9209
|
|
|
9203
9210
|
// check for redirect
|
|
9204
9211
|
if (dataResponse.redirectTrafficToCanonical) {
|
package/package.json
CHANGED
|
@@ -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
|
|
|
@@ -38,6 +38,16 @@ export async function PrivateLabelPageModule(apiUri, host, resolvedUrl) {
|
|
|
38
38
|
data.companyName = dataResponse.companyName;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
if (dataResponse.googleAnalytics4Code != null)
|
|
42
|
+
{
|
|
43
|
+
data.googleAnalytics4Code = dataResponse.googleAnalytics4Code;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (dataResponse.microsoftClarityCode != null)
|
|
47
|
+
{
|
|
48
|
+
data.microsoftClarityCode = dataResponse.microsoftClarityCode;
|
|
49
|
+
}
|
|
50
|
+
|
|
41
51
|
// check for redirect
|
|
42
52
|
if (dataResponse.redirectTrafficToCanonical)
|
|
43
53
|
{
|