@thunderid/nextjs 0.1.0 → 0.2.1
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/README.md +2 -1
- package/dist/{SessionManager-B5tAUogZ.js → SessionManager-BvmZ19QF.js} +23 -23
- package/dist/{cache-CehR-2Mf.js → cache-DOmEIb7_.js} +278 -1996
- package/dist/cjs/{SessionManager-DWVXWxai.js → SessionManager-x03qrCM_.js} +23 -23
- package/dist/cjs/{cache-DWfaHdaR.js → cache-Bw8u7jYk.js} +278 -1996
- package/dist/cjs/{dynamic-rendering-BEGH3rlw.js → dynamic-rendering-DY0EUx64.js} +32 -62
- package/dist/cjs/{getAccessToken-Cab1Sj9F.js → getAccessToken-eJk739AD.js} +2 -2
- package/dist/cjs/{getSessionId-JO0wYM7v.js → getSessionId-BXqdO0BZ.js} +2 -2
- package/dist/cjs/getSessionId-j-ERy_WP.js +5 -0
- package/dist/cjs/index.cjs +13 -56
- package/dist/cjs/index2.cjs +5 -5
- package/dist/cjs/middleware.cjs +106 -106
- package/dist/cjs/{segment-CykhDxJi.js → segment-CViTHaAn.js} +3 -3
- package/dist/cjs/{server-CClKGlqg.js → server-ABSmm73r.js} +64 -104
- package/dist/{dynamic-rendering-_qvcT_hy.js → dynamic-rendering-CXn-s32e.js} +33 -45
- package/dist/{getAccessToken-v55M0pXz.js → getAccessToken-oRxArjVC.js} +2 -2
- package/dist/getSessionId-6IipYdCB.js +5 -0
- package/dist/{getSessionId-Do76d3V9.js → getSessionId-_7hj8QSX.js} +2 -2
- package/dist/index.js +13 -56
- package/dist/index2.js +5 -5
- package/dist/middleware.js +106 -106
- package/dist/{segment-CyPl-lBr.js → segment-DRUZ6e3T.js} +3 -3
- package/dist/{server-DIFI4QvJ.js → server-BUNp5d6D.js} +65 -105
- package/dist/types/ThunderIDNextClient.d.ts +2 -3
- package/dist/types/ThunderIDNextClient.d.ts.map +1 -1
- package/dist/types/client/components/presentation/SignIn/SignIn.d.ts +0 -38
- package/dist/types/client/components/presentation/SignIn/SignIn.d.ts.map +1 -1
- package/dist/types/client/components/presentation/SignUp/SignUp.d.ts.map +1 -1
- package/dist/types/client/contexts/ThunderID/ThunderIDProvider.d.ts.map +1 -1
- package/dist/types/server/actions/signInAction.d.ts +3 -3
- package/dist/types/server/actions/signInAction.d.ts.map +1 -1
- package/dist/types/server/actions/signUpAction.d.ts +3 -10
- package/dist/types/server/actions/signUpAction.d.ts.map +1 -1
- package/dist/types/server/actions/switchOrganization.d.ts.map +1 -1
- package/dist/types/server/thunderid.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/cjs/getSessionId-D2GHhpYA.js +0 -5
- package/dist/getSessionId-C83kPHvR.js +0 -5
|
@@ -7,20 +7,9 @@ var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
|
7
7
|
var __getOwnPropNames$1 = Object.getOwnPropertyNames;
|
|
8
8
|
var __getProtoOf = Object.getPrototypeOf;
|
|
9
9
|
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __esm = (fn, res) => function() {
|
|
11
|
-
return fn && (res = (0, fn[__getOwnPropNames$1(fn)[0]])(fn = 0)), res;
|
|
12
|
-
};
|
|
13
10
|
var __commonJS = (cb, mod) => function() {
|
|
14
11
|
return mod || (0, cb[__getOwnPropNames$1(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
12
|
};
|
|
16
|
-
var __export$1 = (all) => {
|
|
17
|
-
let target = {};
|
|
18
|
-
for (var name in all) __defProp$1(target, name, {
|
|
19
|
-
get: all[name],
|
|
20
|
-
enumerable: true
|
|
21
|
-
});
|
|
22
|
-
return target;
|
|
23
|
-
};
|
|
24
13
|
var __copyProps$1 = (to, from, except, desc) => {
|
|
25
14
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames$1(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
26
15
|
key = keys[i];
|
|
@@ -35,13 +24,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
35
24
|
value: mod,
|
|
36
25
|
enumerable: true
|
|
37
26
|
}) : target, mod));
|
|
38
|
-
var __toCommonJS$1 = (mod) => __copyProps$1(__defProp$1({}, "__esModule", { value: true }), mod);
|
|
39
27
|
var __toDynamicImportESM = (isNodeMode) => (mod) => __toESM(mod.default, isNodeMode);
|
|
40
28
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
41
29
|
|
|
42
30
|
//#endregion
|
|
43
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
44
|
-
var require_cookies$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
31
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js
|
|
32
|
+
var require_cookies$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js": ((exports, module) => {
|
|
45
33
|
var __defProp = Object.defineProperty;
|
|
46
34
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
47
35
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -346,8 +334,8 @@ var require_cookies$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/n
|
|
|
346
334
|
}) });
|
|
347
335
|
|
|
348
336
|
//#endregion
|
|
349
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
350
|
-
var require_cookies = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
337
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/web/spec-extension/cookies.js
|
|
338
|
+
var require_cookies = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/web/spec-extension/cookies.js": ((exports) => {
|
|
351
339
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
352
340
|
function _export$10(target, all) {
|
|
353
341
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -370,8 +358,8 @@ var require_cookies = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/nex
|
|
|
370
358
|
}) });
|
|
371
359
|
|
|
372
360
|
//#endregion
|
|
373
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
374
|
-
var require_async_local_storage = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
361
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/app-render/async-local-storage.js
|
|
362
|
+
var require_async_local_storage = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/app-render/async-local-storage.js": ((exports) => {
|
|
375
363
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
376
364
|
function _export$9(target, all) {
|
|
377
365
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -431,8 +419,8 @@ var require_async_local_storage = /* @__PURE__ */ __commonJS({ "../../node_modul
|
|
|
431
419
|
}) });
|
|
432
420
|
|
|
433
421
|
//#endregion
|
|
434
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
435
|
-
var require_work_async_storage_instance = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
422
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/app-render/work-async-storage-instance.js
|
|
423
|
+
var require_work_async_storage_instance = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/app-render/work-async-storage-instance.js": ((exports) => {
|
|
436
424
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
437
425
|
Object.defineProperty(exports, "workAsyncStorageInstance", {
|
|
438
426
|
enumerable: true,
|
|
@@ -444,8 +432,8 @@ var require_work_async_storage_instance = /* @__PURE__ */ __commonJS({ "../../no
|
|
|
444
432
|
}) });
|
|
445
433
|
|
|
446
434
|
//#endregion
|
|
447
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
448
|
-
var require_work_async_storage_external = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
435
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/app-render/work-async-storage.external.js
|
|
436
|
+
var require_work_async_storage_external = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/app-render/work-async-storage.external.js": ((exports) => {
|
|
449
437
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
450
438
|
Object.defineProperty(exports, "workAsyncStorage", {
|
|
451
439
|
enumerable: true,
|
|
@@ -457,8 +445,8 @@ var require_work_async_storage_external = /* @__PURE__ */ __commonJS({ "../../no
|
|
|
457
445
|
}) });
|
|
458
446
|
|
|
459
447
|
//#endregion
|
|
460
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
461
|
-
var require_work_unit_async_storage_instance = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
448
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js
|
|
449
|
+
var require_work_unit_async_storage_instance = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js": ((exports) => {
|
|
462
450
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
463
451
|
Object.defineProperty(exports, "workUnitAsyncStorageInstance", {
|
|
464
452
|
enumerable: true,
|
|
@@ -470,8 +458,8 @@ var require_work_unit_async_storage_instance = /* @__PURE__ */ __commonJS({ "../
|
|
|
470
458
|
}) });
|
|
471
459
|
|
|
472
460
|
//#endregion
|
|
473
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
474
|
-
var require_app_router_headers = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
461
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/client/components/app-router-headers.js
|
|
462
|
+
var require_app_router_headers = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/client/components/app-router-headers.js": ((exports, module) => {
|
|
475
463
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
476
464
|
function _export$8(target, all) {
|
|
477
465
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -563,8 +551,8 @@ var require_app_router_headers = /* @__PURE__ */ __commonJS({ "../../node_module
|
|
|
563
551
|
}) });
|
|
564
552
|
|
|
565
553
|
//#endregion
|
|
566
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
567
|
-
var require_invariant_error = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
554
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/shared/lib/invariant-error.js
|
|
555
|
+
var require_invariant_error = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/shared/lib/invariant-error.js": ((exports) => {
|
|
568
556
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
569
557
|
Object.defineProperty(exports, "InvariantError", {
|
|
570
558
|
enumerable: true,
|
|
@@ -581,8 +569,8 @@ var require_invariant_error = /* @__PURE__ */ __commonJS({ "../../node_modules/.
|
|
|
581
569
|
}) });
|
|
582
570
|
|
|
583
571
|
//#endregion
|
|
584
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
585
|
-
var require_work_unit_async_storage_external = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
572
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js
|
|
573
|
+
var require_work_unit_async_storage_external = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js": ((exports) => {
|
|
586
574
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
587
575
|
function _export$7(target, all) {
|
|
588
576
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -760,8 +748,8 @@ var require_work_unit_async_storage_external = /* @__PURE__ */ __commonJS({ "../
|
|
|
760
748
|
}) });
|
|
761
749
|
|
|
762
750
|
//#endregion
|
|
763
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
764
|
-
var require_hooks_server_context = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
751
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/client/components/hooks-server-context.js
|
|
752
|
+
var require_hooks_server_context = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/client/components/hooks-server-context.js": ((exports, module) => {
|
|
765
753
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
766
754
|
function _export$6(target, all) {
|
|
767
755
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -795,8 +783,8 @@ var require_hooks_server_context = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
795
783
|
}) });
|
|
796
784
|
|
|
797
785
|
//#endregion
|
|
798
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
799
|
-
var require_static_generation_bailout = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
786
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/client/components/static-generation-bailout.js
|
|
787
|
+
var require_static_generation_bailout = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/client/components/static-generation-bailout.js": ((exports, module) => {
|
|
800
788
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
801
789
|
function _export$5(target, all) {
|
|
802
790
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -830,8 +818,8 @@ var require_static_generation_bailout = /* @__PURE__ */ __commonJS({ "../../node
|
|
|
830
818
|
}) });
|
|
831
819
|
|
|
832
820
|
//#endregion
|
|
833
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
834
|
-
var require_dynamic_rendering_utils = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
821
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/dynamic-rendering-utils.js
|
|
822
|
+
var require_dynamic_rendering_utils = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/dynamic-rendering-utils.js": ((exports) => {
|
|
835
823
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
836
824
|
function _export$4(target, all) {
|
|
837
825
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -891,8 +879,8 @@ var require_dynamic_rendering_utils = /* @__PURE__ */ __commonJS({ "../../node_m
|
|
|
891
879
|
}) });
|
|
892
880
|
|
|
893
881
|
//#endregion
|
|
894
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
895
|
-
var require_boundary_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
882
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/lib/framework/boundary-constants.js
|
|
883
|
+
var require_boundary_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/lib/framework/boundary-constants.js": ((exports) => {
|
|
896
884
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
897
885
|
function _export$3(target, all) {
|
|
898
886
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -921,8 +909,8 @@ var require_boundary_constants = /* @__PURE__ */ __commonJS({ "../../node_module
|
|
|
921
909
|
}) });
|
|
922
910
|
|
|
923
911
|
//#endregion
|
|
924
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
925
|
-
var require_scheduler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
912
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/lib/scheduler.js
|
|
913
|
+
var require_scheduler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/lib/scheduler.js": ((exports) => {
|
|
926
914
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
927
915
|
function _export$2(target, all) {
|
|
928
916
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -964,8 +952,8 @@ var require_scheduler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/n
|
|
|
964
952
|
}) });
|
|
965
953
|
|
|
966
954
|
//#endregion
|
|
967
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
968
|
-
var require_bailout_to_csr = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
955
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js
|
|
956
|
+
var require_bailout_to_csr = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js": ((exports) => {
|
|
969
957
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
970
958
|
function _export$1(target, all) {
|
|
971
959
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -994,8 +982,8 @@ var require_bailout_to_csr = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
994
982
|
}) });
|
|
995
983
|
|
|
996
984
|
//#endregion
|
|
997
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
998
|
-
var require_dynamic_rendering = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
985
|
+
//#region ../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/app-render/dynamic-rendering.js
|
|
986
|
+
var require_dynamic_rendering = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@playwright+test@1.60.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/next/dist/server/app-render/dynamic-rendering.js": ((exports) => {
|
|
999
987
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1000
988
|
function _export(target, all) {
|
|
1001
989
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -1438,4 +1426,4 @@ var require_dynamic_rendering = /* @__PURE__ */ __commonJS({ "../../node_modules
|
|
|
1438
1426
|
}) });
|
|
1439
1427
|
|
|
1440
1428
|
//#endregion
|
|
1441
|
-
export {
|
|
1429
|
+
export { require_static_generation_bailout as a, require_invariant_error as c, require_cookies as d, __commonJS as f, __toESM as h, require_dynamic_rendering_utils as i, require_work_async_storage_external as l, __toDynamicImportESM as m, require_bailout_to_csr as n, require_hooks_server_context as o, __require as p, require_scheduler as r, require_work_unit_async_storage_external as s, require_dynamic_rendering as t, require_async_local_storage as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as require_headers, t as SessionManager_default } from "./SessionManager-
|
|
1
|
+
import { h as __toESM } from "./dynamic-rendering-CXn-s32e.js";
|
|
2
|
+
import { n as require_headers, t as SessionManager_default } from "./SessionManager-BvmZ19QF.js";
|
|
3
3
|
|
|
4
4
|
//#region src/server/actions/getAccessToken.ts
|
|
5
5
|
var import_headers = /* @__PURE__ */ __toESM(require_headers(), 1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as require_headers, t as SessionManager_default } from "./SessionManager-
|
|
1
|
+
import { h as __toESM } from "./dynamic-rendering-CXn-s32e.js";
|
|
2
|
+
import { n as require_headers, t as SessionManager_default } from "./SessionManager-BvmZ19QF.js";
|
|
3
3
|
|
|
4
4
|
//#region src/server/actions/getSessionId.ts
|
|
5
5
|
var import_headers = /* @__PURE__ */ __toESM(require_headers(), 1);
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./SessionManager-
|
|
3
|
-
import { a as logger_default, c as ThunderIDNextClient_default, i as require_navigation, n as require_jsx_runtime, o as thunderid_default, r as ThunderIDContext_default, s as getClient_default, t as ThunderIDProvider_default } from "./server-
|
|
4
|
-
import { t as getSessionId_default } from "./getSessionId-
|
|
5
|
-
import "./segment-
|
|
1
|
+
import { h as __toESM } from "./dynamic-rendering-CXn-s32e.js";
|
|
2
|
+
import "./SessionManager-BvmZ19QF.js";
|
|
3
|
+
import { a as logger_default, c as ThunderIDNextClient_default, i as require_navigation, n as require_jsx_runtime, o as thunderid_default, r as ThunderIDContext_default, s as getClient_default, t as ThunderIDProvider_default } from "./server-BUNp5d6D.js";
|
|
4
|
+
import { t as getSessionId_default } from "./getSessionId-_7hj8QSX.js";
|
|
5
|
+
import "./segment-DRUZ6e3T.js";
|
|
6
6
|
import { EmbeddedFlowType, ThunderIDRuntimeError, createPatchOperations, updateOrganization } from "@thunderid/node";
|
|
7
7
|
import { forwardRef, useContext, useEffect, useState } from "react";
|
|
8
8
|
import { BaseCreateOrganization, BaseOrganization, BaseOrganizationList, BaseOrganizationProfile, BaseOrganizationSwitcher, BaseSignIn, BaseSignInButton, BaseSignOutButton, BaseSignUp, BaseSignUpButton, BaseUser, BaseUserDropdown, BaseUserProfile, BuildingAlt, useOrganization, useTranslation, useUser } from "@thunderid/react";
|
|
@@ -626,61 +626,14 @@ var SignUpButton_default = SignUpButton;
|
|
|
626
626
|
* A SignIn component for Next.js that provides native authentication flow.
|
|
627
627
|
* This component delegates to the BaseSignIn from @thunderid/react and requires
|
|
628
628
|
* the API functions to be provided as props.
|
|
629
|
-
*
|
|
630
|
-
* @remarks This component requires the authentication API functions to be provided
|
|
631
|
-
* as props. For a complete working example, you'll need to implement the server-side
|
|
632
|
-
* authentication endpoints or use the traditional OAuth flow with SignInButton.
|
|
633
|
-
*
|
|
634
|
-
* @example
|
|
635
|
-
* ```tsx
|
|
636
|
-
* import { SignIn } from '@thunderid/nextjs';
|
|
637
|
-
* import { executeEmbeddedSignInFlow } from '@thunderid/browser';
|
|
638
|
-
*
|
|
639
|
-
* const LoginPage = () => {
|
|
640
|
-
* const handleInitialize = async () => {
|
|
641
|
-
* return await executeEmbeddedSignInFlow({
|
|
642
|
-
* response_mode: 'direct',
|
|
643
|
-
* });
|
|
644
|
-
* };
|
|
645
|
-
*
|
|
646
|
-
* const handleSubmit = async (flow) => {
|
|
647
|
-
* return await executeEmbeddedSignInFlow({ flow });
|
|
648
|
-
* };
|
|
649
|
-
*
|
|
650
|
-
* return (
|
|
651
|
-
* <SignIn
|
|
652
|
-
* onInitialize={handleInitialize}
|
|
653
|
-
* onSubmit={handleSubmit}
|
|
654
|
-
* onSuccess={(authData) => {
|
|
655
|
-
* console.log('Authentication successful:', authData);
|
|
656
|
-
* }}
|
|
657
|
-
* onError={(error) => {
|
|
658
|
-
* console.error('Authentication failed:', error);
|
|
659
|
-
* }}
|
|
660
|
-
* size="medium"
|
|
661
|
-
* variant="outlined"
|
|
662
|
-
* afterSignInUrl="/dashboard"
|
|
663
|
-
* />
|
|
664
|
-
* );
|
|
665
|
-
* };
|
|
666
|
-
* ```
|
|
667
629
|
*/
|
|
668
630
|
const SignIn = ({ size = "medium", variant = "outlined",...rest }) => {
|
|
669
|
-
const { signIn
|
|
670
|
-
const handleInitialize = async () => signIn && await signIn({
|
|
671
|
-
flowId: "",
|
|
672
|
-
selectedAuthenticator: {
|
|
673
|
-
authenticatorId: "",
|
|
674
|
-
params: {}
|
|
675
|
-
}
|
|
676
|
-
});
|
|
631
|
+
const { signIn } = useThunderID_default();
|
|
677
632
|
const handleOnSubmit = async (payload, request) => {
|
|
678
633
|
if (!signIn) throw new ThunderIDRuntimeError("`signIn` function is not available.", "SignIn-handleOnSubmit-RuntimeError-001", "nextjs");
|
|
679
|
-
|
|
634
|
+
await signIn(payload, request);
|
|
680
635
|
};
|
|
681
636
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseSignIn, {
|
|
682
|
-
afterSignInUrl,
|
|
683
|
-
onInitialize: handleInitialize,
|
|
684
637
|
onSubmit: handleOnSubmit,
|
|
685
638
|
size,
|
|
686
639
|
variant,
|
|
@@ -806,13 +759,17 @@ var User_default = User;
|
|
|
806
759
|
* ```
|
|
807
760
|
*/
|
|
808
761
|
const SignUp = ({ className, size = "medium", variant = "outlined", afterSignUpUrl, onError }) => {
|
|
809
|
-
const { signUp } = useThunderID_default();
|
|
762
|
+
const { signUp, applicationId: contextApplicationId, scopes } = useThunderID_default();
|
|
810
763
|
/**
|
|
811
764
|
* Initialize the sign-up flow.
|
|
812
765
|
*/
|
|
813
766
|
const handleInitialize = async (payload) => {
|
|
814
767
|
if (!signUp) throw new ThunderIDRuntimeError("`signUp` function is not available.", "SignUp-handleInitialize-RuntimeError-001", "nextjs");
|
|
815
|
-
return await signUp(payload || {
|
|
768
|
+
return await signUp(payload || {
|
|
769
|
+
flowType: EmbeddedFlowType.Registration,
|
|
770
|
+
...contextApplicationId && { applicationId: contextApplicationId },
|
|
771
|
+
...scopes && { scopes }
|
|
772
|
+
});
|
|
816
773
|
};
|
|
817
774
|
/**
|
|
818
775
|
* Handle sign-up steps.
|
package/dist/index2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./dynamic-rendering-
|
|
2
|
-
import "./SessionManager-
|
|
3
|
-
import { o as thunderid_default, t as ThunderIDProvider_default } from "./server-
|
|
4
|
-
import "./getSessionId-
|
|
5
|
-
import "./segment-
|
|
1
|
+
import "./dynamic-rendering-CXn-s32e.js";
|
|
2
|
+
import "./SessionManager-BvmZ19QF.js";
|
|
3
|
+
import { o as thunderid_default, t as ThunderIDProvider_default } from "./server-BUNp5d6D.js";
|
|
4
|
+
import "./getSessionId-_7hj8QSX.js";
|
|
5
|
+
import "./segment-DRUZ6e3T.js";
|
|
6
6
|
|
|
7
7
|
export { ThunderIDProvider_default as ThunderIDProvider, thunderid_default as thunderid };
|