authscape 1.0.763 → 1.0.766
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 +2 -1
- package/package.json +2 -2
- package/src/components/AuthScapeApp.js +1 -1
package/index.js
CHANGED
|
@@ -715,6 +715,7 @@ function ensureUserHelpers(u) {
|
|
|
715
715
|
// AuthScapeApp Component
|
|
716
716
|
// ============================================================================
|
|
717
717
|
function AuthScapeApp(_ref10) {
|
|
718
|
+
var _searchParams$get;
|
|
718
719
|
var Component = _ref10.Component,
|
|
719
720
|
layout = _ref10.layout,
|
|
720
721
|
loadingLayout = _ref10.loadingLayout,
|
|
@@ -758,7 +759,7 @@ function AuthScapeApp(_ref10) {
|
|
|
758
759
|
var ga4React = (0, _react.useRef)(null);
|
|
759
760
|
var errorTrackingInitializedRef = (0, _react.useRef)(false);
|
|
760
761
|
var searchParams = (0, _navigation.useSearchParams)();
|
|
761
|
-
var queryCode = searchParams.get("code");
|
|
762
|
+
var queryCode = (_searchParams$get = searchParams === null || searchParams === void 0 ? void 0 : searchParams.get("code")) !== null && _searchParams$get !== void 0 ? _searchParams$get : null;
|
|
762
763
|
var pathname = (0, _navigation.usePathname)();
|
|
763
764
|
var signInValidator = /*#__PURE__*/function () {
|
|
764
765
|
var _ref11 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(codeFromQuery) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "authscape",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.766",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"js-file-download": "^0.4.12",
|
|
23
23
|
"react-data-table-component": "^7.5.2",
|
|
24
24
|
"react-dom": "^18.2.0",
|
|
25
|
-
"react-toastify": "^
|
|
25
|
+
"react-toastify": "^10.0.5"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/cli": "^7.27.0",
|
|
@@ -486,7 +486,7 @@ export function AuthScapeApp({
|
|
|
486
486
|
const errorTrackingInitializedRef = useRef(false);
|
|
487
487
|
|
|
488
488
|
const searchParams = useSearchParams();
|
|
489
|
-
const queryCode = searchParams
|
|
489
|
+
const queryCode = searchParams?.get("code") ?? null;
|
|
490
490
|
const pathname = usePathname();
|
|
491
491
|
|
|
492
492
|
const signInValidator = async (codeFromQuery) => {
|