@frontegg/nextjs 6.8.0-alpha.3563201180 → 6.8.0-alpha.3620892690
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 +8 -3
- package/index.d.ts +1 -0
- package/index.esm.js +5 -3
- package/package.json +3 -3
package/index.cjs.js
CHANGED
|
@@ -85,9 +85,9 @@ var Connector$1 = function Connector(_props) {
|
|
|
85
85
|
|
|
86
86
|
var router = _props.router,
|
|
87
87
|
appName = _props.appName,
|
|
88
|
-
hostedLoginBox = _props.hostedLoginBox
|
|
89
|
-
_props.customLoginBox
|
|
90
|
-
|
|
88
|
+
hostedLoginBox = _props.hostedLoginBox,
|
|
89
|
+
customLoginBox = _props.customLoginBox,
|
|
90
|
+
props = __rest(_props, ["router", "appName", "hostedLoginBox", "customLoginBox"]);
|
|
91
91
|
|
|
92
92
|
var isSSR = typeof window === 'undefined';
|
|
93
93
|
var baseName = (_a = props.basename) !== null && _a !== void 0 ? _a : router.basePath;
|
|
@@ -131,6 +131,7 @@ var Connector$1 = function Connector(_props) {
|
|
|
131
131
|
} catch (e) {
|
|
132
132
|
createdApp = js.initialize(Object.assign(Object.assign({}, props), {
|
|
133
133
|
hostedLoginBox: hostedLoginBox !== null && hostedLoginBox !== void 0 ? hostedLoginBox : false,
|
|
134
|
+
customLoginBox: customLoginBox !== null && customLoginBox !== void 0 ? customLoginBox : false,
|
|
134
135
|
basename: (_a = props.basename) !== null && _a !== void 0 ? _a : baseName,
|
|
135
136
|
authOptions: Object.assign(Object.assign({}, props.authOptions), {
|
|
136
137
|
onRedirectTo: onRedirectTo
|
|
@@ -2486,6 +2487,10 @@ Object.defineProperty(exports, 'AdminPortal', {
|
|
|
2486
2487
|
enumerable: true,
|
|
2487
2488
|
get: function () { return js.AdminPortal; }
|
|
2488
2489
|
});
|
|
2490
|
+
Object.defineProperty(exports, 'ContextHolder', {
|
|
2491
|
+
enumerable: true,
|
|
2492
|
+
get: function () { return restApi.ContextHolder; }
|
|
2493
|
+
});
|
|
2489
2494
|
exports.AuthorizedContent = AuthorizedContent;
|
|
2490
2495
|
exports.FronteggConfig = fronteggConfig;
|
|
2491
2496
|
exports.FronteggProvider = FronteggProvider;
|
package/index.d.ts
CHANGED
package/index.esm.js
CHANGED
|
@@ -5,6 +5,7 @@ export { AdminPortal } from '@frontegg/js';
|
|
|
5
5
|
import { FronteggStoreProvider, useAuthUserOrNull, useAuthActions, useLoginWithRedirect, useLoginActions } from '@frontegg/react-hooks';
|
|
6
6
|
export * from '@frontegg/react-hooks';
|
|
7
7
|
import { fronteggAuthApiRoutes, ContextHolder, fronteggRefreshTokenUrl, fronteggSilentRefreshTokenUrl } from '@frontegg/rest-api';
|
|
8
|
+
export { ContextHolder } from '@frontegg/rest-api';
|
|
8
9
|
import { useRouter } from 'next/router';
|
|
9
10
|
import { importJWK, jwtVerify, decodeJwt } from 'jose';
|
|
10
11
|
import { authInitialState } from '@frontegg/redux-store';
|
|
@@ -59,9 +60,9 @@ var Connector$1 = function Connector(_props) {
|
|
|
59
60
|
|
|
60
61
|
var router = _props.router,
|
|
61
62
|
appName = _props.appName,
|
|
62
|
-
hostedLoginBox = _props.hostedLoginBox
|
|
63
|
-
_props.customLoginBox
|
|
64
|
-
|
|
63
|
+
hostedLoginBox = _props.hostedLoginBox,
|
|
64
|
+
customLoginBox = _props.customLoginBox,
|
|
65
|
+
props = __rest(_props, ["router", "appName", "hostedLoginBox", "customLoginBox"]);
|
|
65
66
|
|
|
66
67
|
var isSSR = typeof window === 'undefined';
|
|
67
68
|
var baseName = (_a = props.basename) !== null && _a !== void 0 ? _a : router.basePath;
|
|
@@ -105,6 +106,7 @@ var Connector$1 = function Connector(_props) {
|
|
|
105
106
|
} catch (e) {
|
|
106
107
|
createdApp = initialize(Object.assign(Object.assign({}, props), {
|
|
107
108
|
hostedLoginBox: hostedLoginBox !== null && hostedLoginBox !== void 0 ? hostedLoginBox : false,
|
|
109
|
+
customLoginBox: customLoginBox !== null && customLoginBox !== void 0 ? customLoginBox : false,
|
|
108
110
|
basename: (_a = props.basename) !== null && _a !== void 0 ? _a : baseName,
|
|
109
111
|
authOptions: Object.assign(Object.assign({}, props.authOptions), {
|
|
110
112
|
onRedirectTo: onRedirectTo
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/nextjs",
|
|
3
|
-
"version": "6.8.0-alpha.
|
|
3
|
+
"version": "6.8.0-alpha.3620892690",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@frontegg/js": "6.
|
|
6
|
-
"@frontegg/react-hooks": "6.
|
|
5
|
+
"@frontegg/js": "6.49.0-alpha.1",
|
|
6
|
+
"@frontegg/react-hooks": "6.49.0-alpha.1",
|
|
7
7
|
"jose": "^4.9.2",
|
|
8
8
|
"iron-session": "^6.2.1",
|
|
9
9
|
"http-proxy": "^1.18.1",
|