@frontegg/nextjs 6.7.3-alpha.3438888046 → 6.7.3-alpha.3444559730
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.cjs.js +3 -6
- package/index.esm.js +3 -6
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -1400,7 +1400,6 @@ function FronteggRouterProps(context) {
|
|
|
1400
1400
|
if (fronteggConfig.fronteggAppOptions.hostedLoginBox) {
|
|
1401
1401
|
var _notFound = !(routesObj.loginUrl === pathname || routesObj.logoutUrl === pathname || routesObj.hostedLoginRedirectUrl === pathname);
|
|
1402
1402
|
|
|
1403
|
-
console.log("Page not found? :", _notFound, pathname);
|
|
1404
1403
|
return {
|
|
1405
1404
|
notFound: _notFound,
|
|
1406
1405
|
props: {}
|
|
@@ -1634,7 +1633,6 @@ function withSSRSession(handler) {
|
|
|
1634
1633
|
loginUrl = "/".concat(loginUrl);
|
|
1635
1634
|
}
|
|
1636
1635
|
|
|
1637
|
-
console.log("redriecting to login");
|
|
1638
1636
|
return _context3.abrupt("return", {
|
|
1639
1637
|
redirect: {
|
|
1640
1638
|
permanent: false,
|
|
@@ -1643,7 +1641,7 @@ function withSSRSession(handler) {
|
|
|
1643
1641
|
props: {}
|
|
1644
1642
|
});
|
|
1645
1643
|
|
|
1646
|
-
case
|
|
1644
|
+
case 10:
|
|
1647
1645
|
case "end":
|
|
1648
1646
|
return _context3.stop();
|
|
1649
1647
|
}
|
|
@@ -1923,16 +1921,15 @@ function refreshToken(ctx) {
|
|
|
1923
1921
|
return _context3.abrupt("return", null);
|
|
1924
1922
|
|
|
1925
1923
|
case 55:
|
|
1926
|
-
_context3.next =
|
|
1924
|
+
_context3.next = 60;
|
|
1927
1925
|
break;
|
|
1928
1926
|
|
|
1929
1927
|
case 57:
|
|
1930
1928
|
_context3.prev = 57;
|
|
1931
1929
|
_context3.t1 = _context3["catch"](0);
|
|
1932
|
-
console.log(_context3.t1);
|
|
1933
1930
|
return _context3.abrupt("return", null);
|
|
1934
1931
|
|
|
1935
|
-
case
|
|
1932
|
+
case 60:
|
|
1936
1933
|
case "end":
|
|
1937
1934
|
return _context3.stop();
|
|
1938
1935
|
}
|
package/index.esm.js
CHANGED
|
@@ -1374,7 +1374,6 @@ function FronteggRouterProps(context) {
|
|
|
1374
1374
|
if (fronteggConfig.fronteggAppOptions.hostedLoginBox) {
|
|
1375
1375
|
var _notFound = !(routesObj.loginUrl === pathname || routesObj.logoutUrl === pathname || routesObj.hostedLoginRedirectUrl === pathname);
|
|
1376
1376
|
|
|
1377
|
-
console.log("Page not found? :", _notFound, pathname);
|
|
1378
1377
|
return {
|
|
1379
1378
|
notFound: _notFound,
|
|
1380
1379
|
props: {}
|
|
@@ -1608,7 +1607,6 @@ function withSSRSession(handler) {
|
|
|
1608
1607
|
loginUrl = "/".concat(loginUrl);
|
|
1609
1608
|
}
|
|
1610
1609
|
|
|
1611
|
-
console.log("redriecting to login");
|
|
1612
1610
|
return _context3.abrupt("return", {
|
|
1613
1611
|
redirect: {
|
|
1614
1612
|
permanent: false,
|
|
@@ -1617,7 +1615,7 @@ function withSSRSession(handler) {
|
|
|
1617
1615
|
props: {}
|
|
1618
1616
|
});
|
|
1619
1617
|
|
|
1620
|
-
case
|
|
1618
|
+
case 10:
|
|
1621
1619
|
case "end":
|
|
1622
1620
|
return _context3.stop();
|
|
1623
1621
|
}
|
|
@@ -1897,16 +1895,15 @@ function refreshToken(ctx) {
|
|
|
1897
1895
|
return _context3.abrupt("return", null);
|
|
1898
1896
|
|
|
1899
1897
|
case 55:
|
|
1900
|
-
_context3.next =
|
|
1898
|
+
_context3.next = 60;
|
|
1901
1899
|
break;
|
|
1902
1900
|
|
|
1903
1901
|
case 57:
|
|
1904
1902
|
_context3.prev = 57;
|
|
1905
1903
|
_context3.t1 = _context3["catch"](0);
|
|
1906
|
-
console.log(_context3.t1);
|
|
1907
1904
|
return _context3.abrupt("return", null);
|
|
1908
1905
|
|
|
1909
|
-
case
|
|
1906
|
+
case 60:
|
|
1910
1907
|
case "end":
|
|
1911
1908
|
return _context3.stop();
|
|
1912
1909
|
}
|