@thunderid/nextjs 0.2.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/dist/{SessionManager-BPpyyzfa.js → SessionManager-BvmZ19QF.js} +23 -23
- package/dist/{cache-B9tFVOO5.js → cache-DOmEIb7_.js} +278 -1996
- package/dist/cjs/{SessionManager-SBxwYnwV.js → SessionManager-x03qrCM_.js} +23 -23
- package/dist/cjs/{cache-0QwhuLuy.js → cache-Bw8u7jYk.js} +278 -1996
- package/dist/cjs/{dynamic-rendering-W7rdgerZ.js → dynamic-rendering-DY0EUx64.js} +32 -62
- package/dist/cjs/{getAccessToken-EiHUciAb.js → getAccessToken-eJk739AD.js} +2 -2
- package/dist/cjs/{getSessionId-Do242Vmz.js → getSessionId-BXqdO0BZ.js} +2 -2
- package/dist/cjs/getSessionId-j-ERy_WP.js +5 -0
- package/dist/cjs/index.cjs +7 -54
- package/dist/cjs/index2.cjs +5 -5
- package/dist/cjs/middleware.cjs +106 -106
- package/dist/cjs/{segment-CPZPzHDj.js → segment-CViTHaAn.js} +3 -3
- package/dist/cjs/{server-BAGHs6kk.js → server-ABSmm73r.js} +60 -102
- package/dist/{dynamic-rendering-CkPpk5pF.js → dynamic-rendering-CXn-s32e.js} +33 -45
- package/dist/{getAccessToken-DCP_zasP.js → getAccessToken-oRxArjVC.js} +2 -2
- package/dist/getSessionId-6IipYdCB.js +5 -0
- package/dist/{getSessionId-Ctmvpfgp.js → getSessionId-_7hj8QSX.js} +2 -2
- package/dist/index.js +7 -54
- package/dist/index2.js +5 -5
- package/dist/middleware.js +106 -106
- package/dist/{segment-D3vdYYI5.js → segment-DRUZ6e3T.js} +3 -3
- package/dist/{server-Bn2BrWaL.js → server-BUNp5d6D.js} +61 -103
- 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/package.json +9 -9
- package/dist/cjs/getSessionId-BUDHvxX2.js +0 -5
- package/dist/getSessionId-pG-rZbaH.js +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as __commonJS } from "./dynamic-rendering-
|
|
1
|
+
import { f as __commonJS } from "./dynamic-rendering-CXn-s32e.js";
|
|
2
2
|
|
|
3
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
4
|
-
var require_segment = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
3
|
+
//#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/segment.js
|
|
4
|
+
var require_segment = /* @__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/segment.js": ((exports) => {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
function _export(target, all) {
|
|
7
7
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as require_headers, t as SessionManager_default } from "./SessionManager-
|
|
3
|
-
import { t as getSessionId_default } from "./getSessionId-
|
|
4
|
-
import { t as require_segment } from "./segment-
|
|
5
|
-
import {
|
|
1
|
+
import { f as __commonJS, h as __toESM, i as require_dynamic_rendering_utils, l as require_work_async_storage_external, m as __toDynamicImportESM, n as require_bailout_to_csr, o as require_hooks_server_context, p as __require, s as require_work_unit_async_storage_external, t as require_dynamic_rendering, u as require_async_local_storage } from "./dynamic-rendering-CXn-s32e.js";
|
|
2
|
+
import { n as require_headers, t as SessionManager_default } from "./SessionManager-BvmZ19QF.js";
|
|
3
|
+
import { t as getSessionId_default } from "./getSessionId-_7hj8QSX.js";
|
|
4
|
+
import { t as require_segment } from "./segment-DRUZ6e3T.js";
|
|
5
|
+
import { EmbeddedSignInFlowStatus, ThunderIDAPIError, ThunderIDNodeClient, ThunderIDRuntimeError, createLogger, createOrganization, deriveOrganizationHandleFromBaseUrl, extractUserClaimsFromIdToken, flattenUserSchema, generateFlattenedUserProfile, generateSessionId, generateUserProfile, getAllOrganizations, getBrandingPreference, getMeOrganizations, getOrganization, getSchemas, getScim2Me, isEmpty, logger, updateMeProfile } from "@thunderid/node";
|
|
6
6
|
import { createContext, useEffect, useMemo, useRef, useState } from "react";
|
|
7
7
|
import { BrandingProvider, FlowMetaProvider, FlowProvider, I18nProvider, OrganizationProvider, ThemeProvider, UserProvider, getActiveTheme } from "@thunderid/react";
|
|
8
8
|
|
|
@@ -219,7 +219,7 @@ var ThunderIDNextClient = class extends ThunderIDNodeClient {
|
|
|
219
219
|
return super.exchangeToken(config, sessionId);
|
|
220
220
|
}
|
|
221
221
|
async getAccessToken(_sessionId) {
|
|
222
|
-
const { default: getAccessToken } = await import("./getAccessToken-
|
|
222
|
+
const { default: getAccessToken } = await import("./getAccessToken-oRxArjVC.js");
|
|
223
223
|
const token = await getAccessToken();
|
|
224
224
|
if (typeof token !== "string" || !token) throw new ThunderIDRuntimeError("Failed to get access token.", "ThunderIDNextClient-getAccessToken-RuntimeError-003", "nextjs", "An error occurred while obtaining the access token. Please check your configuration and network connection.");
|
|
225
225
|
return token;
|
|
@@ -230,25 +230,9 @@ var ThunderIDNextClient = class extends ThunderIDNodeClient {
|
|
|
230
230
|
}
|
|
231
231
|
async signIn(...args) {
|
|
232
232
|
const arg1 = args[0];
|
|
233
|
-
|
|
233
|
+
args[1];
|
|
234
234
|
const arg3 = args[2];
|
|
235
235
|
const arg4 = args[3];
|
|
236
|
-
if (typeof arg1 === "object" && "flowId" in arg1) {
|
|
237
|
-
if (arg1.flowId === "") {
|
|
238
|
-
const defaultSignInUrl = new URL(await this.getAuthorizeRequestUrl({
|
|
239
|
-
client_secret: "{{clientSecret}}",
|
|
240
|
-
response_mode: "direct"
|
|
241
|
-
}));
|
|
242
|
-
return initializeEmbeddedSignInFlow({
|
|
243
|
-
payload: Object.fromEntries(defaultSignInUrl.searchParams.entries()),
|
|
244
|
-
url: `${defaultSignInUrl.origin}${defaultSignInUrl.pathname}`
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
return executeEmbeddedSignInFlow({
|
|
248
|
-
payload: arg1,
|
|
249
|
-
url: arg2.url
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
236
|
return super.signIn(arg4, arg3, arg1?.code, arg1?.session_state, arg1?.state, arg1);
|
|
253
237
|
}
|
|
254
238
|
async signOut(...args) {
|
|
@@ -262,16 +246,8 @@ var ThunderIDNextClient = class extends ThunderIDNodeClient {
|
|
|
262
246
|
}
|
|
263
247
|
return afterSignOutUrl;
|
|
264
248
|
}
|
|
265
|
-
async signUp(
|
|
266
|
-
|
|
267
|
-
if (typeof firstArg === "object" && "flowType" in firstArg) {
|
|
268
|
-
const baseUrl = (await this.getStorageManager().getConfigData())?.baseUrl;
|
|
269
|
-
return executeEmbeddedSignUpFlow({
|
|
270
|
-
baseUrl,
|
|
271
|
-
payload: firstArg
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
throw new ThunderIDRuntimeError("Not implemented", "ThunderIDNextClient-ValidationError-002", "nextjs", "The signUp method with SignUpOptions is not implemented in the Next.js client.");
|
|
249
|
+
async signUp(_options) {
|
|
250
|
+
throw new ThunderIDRuntimeError("Not implemented", "ThunderIDNextClient-ValidationError-002", "nextjs", "The signUp method is not implemented in the Next.js client.");
|
|
275
251
|
}
|
|
276
252
|
signInSilently(_options) {
|
|
277
253
|
throw new ThunderIDRuntimeError("Not implemented", "ThunderIDNextClient-signInSilently-NotImplementedError-001", "nextjs", "The signInSilently method is not implemented in the Next.js client.");
|
|
@@ -442,7 +418,7 @@ const getMyOrganizations = async (options, sessionId) => {
|
|
|
442
418
|
const client = getClient_default();
|
|
443
419
|
let resolvedSessionId = sessionId;
|
|
444
420
|
if (!resolvedSessionId) {
|
|
445
|
-
const { default: getSessionId } = await import("./getSessionId-
|
|
421
|
+
const { default: getSessionId } = await import("./getSessionId-6IipYdCB.js");
|
|
446
422
|
resolvedSessionId = await getSessionId();
|
|
447
423
|
}
|
|
448
424
|
if (!resolvedSessionId) throw new ThunderIDAPIError("No session ID available for fetching organizations", "getMyOrganizations-SessionError-001", "nextjs", 401);
|
|
@@ -783,7 +759,7 @@ const signInAction = async (payload, request) => {
|
|
|
783
759
|
};
|
|
784
760
|
}
|
|
785
761
|
const response = await client.signIn(payload, request, sessionId);
|
|
786
|
-
if (response.flowStatus === EmbeddedSignInFlowStatus.
|
|
762
|
+
if (response.flowStatus === EmbeddedSignInFlowStatus.Complete) {
|
|
787
763
|
const signInResult = await client.signIn({
|
|
788
764
|
code: response?.authData?.code,
|
|
789
765
|
session_state: response?.authData?.session_state,
|
|
@@ -873,30 +849,12 @@ var signOutAction_default = signOutAction;
|
|
|
873
849
|
//#endregion
|
|
874
850
|
//#region src/server/actions/signUpAction.ts
|
|
875
851
|
/**
|
|
876
|
-
* Server action for
|
|
877
|
-
* Handles the embedded sign-in flow and manages session cookies.
|
|
878
|
-
*
|
|
879
|
-
* @param payload - The embedded sign-in flow payload
|
|
880
|
-
* @param request - The embedded flow execute request config
|
|
881
|
-
* @returns Promise that resolves when sign-in is complete
|
|
852
|
+
* Server action for initiating the sign-up redirect flow.
|
|
882
853
|
*/
|
|
883
|
-
const signUpAction = async (
|
|
854
|
+
const signUpAction = async () => {
|
|
884
855
|
try {
|
|
885
|
-
const client = getClient_default();
|
|
886
|
-
if (!payload) return {
|
|
887
|
-
data: { signUpUrl: String("") },
|
|
888
|
-
success: true
|
|
889
|
-
};
|
|
890
|
-
const response = await client.signUp(payload);
|
|
891
|
-
if (response.flowStatus === EmbeddedFlowStatus.Complete) {
|
|
892
|
-
const afterSignUpUrl = await (await client.getStorageManager()).getConfigDataParameter("afterSignInUrl");
|
|
893
|
-
return {
|
|
894
|
-
data: { afterSignUpUrl: String(afterSignUpUrl) },
|
|
895
|
-
success: true
|
|
896
|
-
};
|
|
897
|
-
}
|
|
898
856
|
return {
|
|
899
|
-
data:
|
|
857
|
+
data: { signUpUrl: getClient_default().getConfiguration()?.signUpUrl ?? "" },
|
|
900
858
|
success: true
|
|
901
859
|
};
|
|
902
860
|
} catch (error) {
|
|
@@ -920,7 +878,7 @@ const switchOrganization = async (organization, sessionId) => {
|
|
|
920
878
|
const client = getClient_default();
|
|
921
879
|
const resolvedSessionId = sessionId ?? await getSessionId_default();
|
|
922
880
|
const response = await client.switchOrganization(organization, resolvedSessionId);
|
|
923
|
-
const { revalidatePath } = await import("./cache-
|
|
881
|
+
const { revalidatePath } = await import("./cache-DOmEIb7_.js").then(__toDynamicImportESM(1));
|
|
924
882
|
revalidatePath("/");
|
|
925
883
|
if (response && response.accessToken) {
|
|
926
884
|
const tokenResponse = response;
|
|
@@ -974,8 +932,8 @@ var require__interop_require_default = /* @__PURE__ */ __commonJS({ "../../node_
|
|
|
974
932
|
}) });
|
|
975
933
|
|
|
976
934
|
//#endregion
|
|
977
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
978
|
-
var require_app_router_context_shared_runtime = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
935
|
+
//#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/app-router-context.shared-runtime.js
|
|
936
|
+
var require_app_router_context_shared_runtime = /* @__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/app-router-context.shared-runtime.js": ((exports) => {
|
|
979
937
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
980
938
|
function _export$8(target, all) {
|
|
981
939
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -1015,8 +973,8 @@ var require_app_router_context_shared_runtime = /* @__PURE__ */ __commonJS({ "..
|
|
|
1015
973
|
}) });
|
|
1016
974
|
|
|
1017
975
|
//#endregion
|
|
1018
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1019
|
-
var require_hooks_client_context_shared_runtime = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
976
|
+
//#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/hooks-client-context.shared-runtime.js
|
|
977
|
+
var require_hooks_client_context_shared_runtime = /* @__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/hooks-client-context.shared-runtime.js": ((exports) => {
|
|
1020
978
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1021
979
|
function _export$7(target, all) {
|
|
1022
980
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -1047,8 +1005,8 @@ var require_hooks_client_context_shared_runtime = /* @__PURE__ */ __commonJS({ "
|
|
|
1047
1005
|
}) });
|
|
1048
1006
|
|
|
1049
1007
|
//#endregion
|
|
1050
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1051
|
-
var require_get_segment_value = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1008
|
+
//#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/router-reducer/reducers/get-segment-value.js
|
|
1009
|
+
var require_get_segment_value = /* @__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/router-reducer/reducers/get-segment-value.js": ((exports, module) => {
|
|
1052
1010
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1053
1011
|
Object.defineProperty(exports, "getSegmentValue", {
|
|
1054
1012
|
enumerable: true,
|
|
@@ -1067,8 +1025,8 @@ var require_get_segment_value = /* @__PURE__ */ __commonJS({ "../../node_modules
|
|
|
1067
1025
|
}) });
|
|
1068
1026
|
|
|
1069
1027
|
//#endregion
|
|
1070
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1071
|
-
var require_redirect_status_code = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1028
|
+
//#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/redirect-status-code.js
|
|
1029
|
+
var require_redirect_status_code = /* @__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/redirect-status-code.js": ((exports, module) => {
|
|
1072
1030
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1073
1031
|
Object.defineProperty(exports, "RedirectStatusCode", {
|
|
1074
1032
|
enumerable: true,
|
|
@@ -1090,8 +1048,8 @@ var require_redirect_status_code = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
1090
1048
|
}) });
|
|
1091
1049
|
|
|
1092
1050
|
//#endregion
|
|
1093
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1094
|
-
var require_redirect_error = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1051
|
+
//#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/redirect-error.js
|
|
1052
|
+
var require_redirect_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/client/components/redirect-error.js": ((exports, module) => {
|
|
1095
1053
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1096
1054
|
function _export$6(target, all) {
|
|
1097
1055
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -1134,8 +1092,8 @@ var require_redirect_error = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
1134
1092
|
}) });
|
|
1135
1093
|
|
|
1136
1094
|
//#endregion
|
|
1137
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1138
|
-
var require_action_async_storage_instance = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1095
|
+
//#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/action-async-storage-instance.js
|
|
1096
|
+
var require_action_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/action-async-storage-instance.js": ((exports) => {
|
|
1139
1097
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1140
1098
|
Object.defineProperty(exports, "actionAsyncStorageInstance", {
|
|
1141
1099
|
enumerable: true,
|
|
@@ -1147,8 +1105,8 @@ var require_action_async_storage_instance = /* @__PURE__ */ __commonJS({ "../../
|
|
|
1147
1105
|
}) });
|
|
1148
1106
|
|
|
1149
1107
|
//#endregion
|
|
1150
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1151
|
-
var require_action_async_storage_external = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1108
|
+
//#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/action-async-storage.external.js
|
|
1109
|
+
var require_action_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/action-async-storage.external.js": ((exports) => {
|
|
1152
1110
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1153
1111
|
Object.defineProperty(exports, "actionAsyncStorage", {
|
|
1154
1112
|
enumerable: true,
|
|
@@ -1160,8 +1118,8 @@ var require_action_async_storage_external = /* @__PURE__ */ __commonJS({ "../../
|
|
|
1160
1118
|
}) });
|
|
1161
1119
|
|
|
1162
1120
|
//#endregion
|
|
1163
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1164
|
-
var require_redirect = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1121
|
+
//#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/redirect.js
|
|
1122
|
+
var require_redirect = /* @__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/redirect.js": ((exports, module) => {
|
|
1165
1123
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1166
1124
|
function _export$5(target, all) {
|
|
1167
1125
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -1239,8 +1197,8 @@ var require_redirect = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ne
|
|
|
1239
1197
|
}) });
|
|
1240
1198
|
|
|
1241
1199
|
//#endregion
|
|
1242
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1243
|
-
var require_http_access_fallback = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1200
|
+
//#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/http-access-fallback/http-access-fallback.js
|
|
1201
|
+
var require_http_access_fallback = /* @__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/http-access-fallback/http-access-fallback.js": ((exports, module) => {
|
|
1244
1202
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1245
1203
|
function _export$4(target, all) {
|
|
1246
1204
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -1297,8 +1255,8 @@ var require_http_access_fallback = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
1297
1255
|
}) });
|
|
1298
1256
|
|
|
1299
1257
|
//#endregion
|
|
1300
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1301
|
-
var require_not_found = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1258
|
+
//#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/not-found.js
|
|
1259
|
+
var require_not_found = /* @__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/not-found.js": ((exports, module) => {
|
|
1302
1260
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1303
1261
|
Object.defineProperty(exports, "notFound", {
|
|
1304
1262
|
enumerable: true,
|
|
@@ -1337,8 +1295,8 @@ var require_not_found = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/n
|
|
|
1337
1295
|
}) });
|
|
1338
1296
|
|
|
1339
1297
|
//#endregion
|
|
1340
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1341
|
-
var require_forbidden = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1298
|
+
//#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/forbidden.js
|
|
1299
|
+
var require_forbidden = /* @__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/forbidden.js": ((exports, module) => {
|
|
1342
1300
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1343
1301
|
Object.defineProperty(exports, "forbidden", {
|
|
1344
1302
|
enumerable: true,
|
|
@@ -1380,8 +1338,8 @@ var require_forbidden = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/n
|
|
|
1380
1338
|
}) });
|
|
1381
1339
|
|
|
1382
1340
|
//#endregion
|
|
1383
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1384
|
-
var require_unauthorized = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1341
|
+
//#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/unauthorized.js
|
|
1342
|
+
var require_unauthorized = /* @__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/unauthorized.js": ((exports, module) => {
|
|
1385
1343
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1386
1344
|
Object.defineProperty(exports, "unauthorized", {
|
|
1387
1345
|
enumerable: true,
|
|
@@ -1424,8 +1382,8 @@ var require_unauthorized = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
1424
1382
|
}) });
|
|
1425
1383
|
|
|
1426
1384
|
//#endregion
|
|
1427
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1428
|
-
var require_is_postpone = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1385
|
+
//#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/lib/router-utils/is-postpone.js
|
|
1386
|
+
var require_is_postpone = /* @__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/lib/router-utils/is-postpone.js": ((exports) => {
|
|
1429
1387
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1430
1388
|
Object.defineProperty(exports, "isPostpone", {
|
|
1431
1389
|
enumerable: true,
|
|
@@ -1440,8 +1398,8 @@ var require_is_postpone = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
1440
1398
|
}) });
|
|
1441
1399
|
|
|
1442
1400
|
//#endregion
|
|
1443
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1444
|
-
var require_is_next_router_error = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1401
|
+
//#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/is-next-router-error.js
|
|
1402
|
+
var require_is_next_router_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/client/components/is-next-router-error.js": ((exports, module) => {
|
|
1445
1403
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1446
1404
|
Object.defineProperty(exports, "isNextRouterError", {
|
|
1447
1405
|
enumerable: true,
|
|
@@ -1462,8 +1420,8 @@ var require_is_next_router_error = /* @__PURE__ */ __commonJS({ "../../node_modu
|
|
|
1462
1420
|
}) });
|
|
1463
1421
|
|
|
1464
1422
|
//#endregion
|
|
1465
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1466
|
-
var require_unstable_rethrow_server = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1423
|
+
//#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/unstable-rethrow.server.js
|
|
1424
|
+
var require_unstable_rethrow_server = /* @__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/unstable-rethrow.server.js": ((exports, module) => {
|
|
1467
1425
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1468
1426
|
Object.defineProperty(exports, "unstable_rethrow", {
|
|
1469
1427
|
enumerable: true,
|
|
@@ -1489,8 +1447,8 @@ var require_unstable_rethrow_server = /* @__PURE__ */ __commonJS({ "../../node_m
|
|
|
1489
1447
|
}) });
|
|
1490
1448
|
|
|
1491
1449
|
//#endregion
|
|
1492
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1493
|
-
var require_unstable_rethrow_browser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1450
|
+
//#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/unstable-rethrow.browser.js
|
|
1451
|
+
var require_unstable_rethrow_browser = /* @__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/unstable-rethrow.browser.js": ((exports, module) => {
|
|
1494
1452
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1495
1453
|
Object.defineProperty(exports, "unstable_rethrow", {
|
|
1496
1454
|
enumerable: true,
|
|
@@ -1512,8 +1470,8 @@ var require_unstable_rethrow_browser = /* @__PURE__ */ __commonJS({ "../../node_
|
|
|
1512
1470
|
}) });
|
|
1513
1471
|
|
|
1514
1472
|
//#endregion
|
|
1515
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1516
|
-
var require_unstable_rethrow = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1473
|
+
//#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/unstable-rethrow.js
|
|
1474
|
+
var require_unstable_rethrow = /* @__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/unstable-rethrow.js": ((exports, module) => {
|
|
1517
1475
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1518
1476
|
Object.defineProperty(exports, "unstable_rethrow", {
|
|
1519
1477
|
enumerable: true,
|
|
@@ -1530,8 +1488,8 @@ var require_unstable_rethrow = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
|
1530
1488
|
}) });
|
|
1531
1489
|
|
|
1532
1490
|
//#endregion
|
|
1533
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1534
|
-
var require_navigation_react_server = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1491
|
+
//#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/navigation.react-server.js
|
|
1492
|
+
var require_navigation_react_server = /* @__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/navigation.react-server.js": ((exports, module) => {
|
|
1535
1493
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1536
1494
|
function _export$3(target, all) {
|
|
1537
1495
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -1638,8 +1596,8 @@ var require__interop_require_wildcard = /* @__PURE__ */ __commonJS({ "../../node
|
|
|
1638
1596
|
}) });
|
|
1639
1597
|
|
|
1640
1598
|
//#endregion
|
|
1641
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1642
|
-
var require_server_inserted_html_shared_runtime = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1599
|
+
//#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/server-inserted-html.shared-runtime.js
|
|
1600
|
+
var require_server_inserted_html_shared_runtime = /* @__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/server-inserted-html.shared-runtime.js": ((exports) => {
|
|
1643
1601
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1644
1602
|
function _export$2(target, all) {
|
|
1645
1603
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -1664,8 +1622,8 @@ var require_server_inserted_html_shared_runtime = /* @__PURE__ */ __commonJS({ "
|
|
|
1664
1622
|
}) });
|
|
1665
1623
|
|
|
1666
1624
|
//#endregion
|
|
1667
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1668
|
-
var require_unrecognized_action_error = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1625
|
+
//#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/unrecognized-action-error.js
|
|
1626
|
+
var require_unrecognized_action_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/client/components/unrecognized-action-error.js": ((exports, module) => {
|
|
1669
1627
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1670
1628
|
function _export$1(target, all) {
|
|
1671
1629
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -1698,8 +1656,8 @@ var require_unrecognized_action_error = /* @__PURE__ */ __commonJS({ "../../node
|
|
|
1698
1656
|
}) });
|
|
1699
1657
|
|
|
1700
1658
|
//#endregion
|
|
1701
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1702
|
-
var require_bailout_to_client_rendering = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1659
|
+
//#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/bailout-to-client-rendering.js
|
|
1660
|
+
var require_bailout_to_client_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/client/components/bailout-to-client-rendering.js": ((exports, module) => {
|
|
1703
1661
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1704
1662
|
Object.defineProperty(exports, "bailoutToClientRendering", {
|
|
1705
1663
|
enumerable: true,
|
|
@@ -1739,8 +1697,8 @@ var require_bailout_to_client_rendering = /* @__PURE__ */ __commonJS({ "../../no
|
|
|
1739
1697
|
}) });
|
|
1740
1698
|
|
|
1741
1699
|
//#endregion
|
|
1742
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1743
|
-
var require_navigation$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1700
|
+
//#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/navigation.js
|
|
1701
|
+
var require_navigation$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/client/components/navigation.js": ((exports, module) => {
|
|
1744
1702
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1745
1703
|
function _export(target, all) {
|
|
1746
1704
|
for (var name in all) Object.defineProperty(target, name, {
|
|
@@ -1879,8 +1837,8 @@ var require_navigation$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
1879
1837
|
}) });
|
|
1880
1838
|
|
|
1881
1839
|
//#endregion
|
|
1882
|
-
//#region ../../node_modules/.pnpm/next@15.5.18_@
|
|
1883
|
-
var require_navigation = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/next@15.5.18_@
|
|
1840
|
+
//#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/navigation.js
|
|
1841
|
+
var require_navigation = /* @__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/navigation.js": ((exports, module) => {
|
|
1884
1842
|
module.exports = require_navigation$1();
|
|
1885
1843
|
}) });
|
|
1886
1844
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { AllOrganizationsApiResponse, ThunderIDNodeClient, CreateOrganizationPayload,
|
|
18
|
+
import { AllOrganizationsApiResponse, ThunderIDNodeClient, CreateOrganizationPayload, ExtendedAuthorizeRequestUrlParams, IdToken, Organization, OrganizationDetails, SignInOptions, SignUpOptions, Storage, TokenExchangeRequestConfig, TokenResponse, User, UserProfile } from '@thunderid/node';
|
|
19
19
|
import { ThunderIDNextConfig } from './models/config';
|
|
20
20
|
declare class ThunderIDNextClient<T extends ThunderIDNextConfig = ThunderIDNextConfig> extends ThunderIDNodeClient<T> {
|
|
21
21
|
isInitialized: boolean;
|
|
@@ -39,8 +39,7 @@ declare class ThunderIDNextClient<T extends ThunderIDNextConfig = ThunderIDNextC
|
|
|
39
39
|
getDecodedIdToken(sessionId?: string, idToken?: string): Promise<IdToken>;
|
|
40
40
|
signIn(...args: any[]): Promise<any>;
|
|
41
41
|
signOut(...args: any[]): Promise<string>;
|
|
42
|
-
signUp(
|
|
43
|
-
signUp(payload: EmbeddedFlowExecuteRequestPayload): Promise<EmbeddedFlowExecuteResponse>;
|
|
42
|
+
signUp(_options?: SignUpOptions): Promise<void>;
|
|
44
43
|
signInSilently(_options?: SignInOptions): Promise<User | boolean>;
|
|
45
44
|
getAuthorizeRequestUrl(customParams: ExtendedAuthorizeRequestUrlParams, userId?: string): Promise<string>;
|
|
46
45
|
getStorageManager(): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThunderIDNextClient.d.ts","sourceRoot":"","sources":["../../src/ThunderIDNextClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EAGnB,yBAAyB,EACzB,iCAAiC,
|
|
1
|
+
{"version":3,"file":"ThunderIDNextClient.d.ts","sourceRoot":"","sources":["../../src/ThunderIDNextClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EAGnB,yBAAyB,EACzB,iCAAiC,EAEjC,OAAO,EACP,YAAY,EACZ,mBAAmB,EAEnB,aAAa,EACb,aAAa,EACb,OAAO,EACP,0BAA0B,EAC1B,aAAa,EACb,IAAI,EACJ,WAAW,EAaZ,MAAM,iBAAiB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BaseSignInProps, 'className' | 'onSuccess' | 'onE
|
|
|
26
26
|
* A SignIn component for Next.js that provides native authentication flow.
|
|
27
27
|
* This component delegates to the BaseSignIn from @thunderid/react and requires
|
|
28
28
|
* the API functions to be provided as props.
|
|
29
|
-
*
|
|
30
|
-
* @remarks This component requires the authentication API functions to be provided
|
|
31
|
-
* as props. For a complete working example, you'll need to implement the server-side
|
|
32
|
-
* authentication endpoints or use the traditional OAuth flow with SignInButton.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```tsx
|
|
36
|
-
* import { SignIn } from '@thunderid/nextjs';
|
|
37
|
-
* import { executeEmbeddedSignInFlow } from '@thunderid/browser';
|
|
38
|
-
*
|
|
39
|
-
* const LoginPage = () => {
|
|
40
|
-
* const handleInitialize = async () => {
|
|
41
|
-
* return await executeEmbeddedSignInFlow({
|
|
42
|
-
* response_mode: 'direct',
|
|
43
|
-
* });
|
|
44
|
-
* };
|
|
45
|
-
*
|
|
46
|
-
* const handleSubmit = async (flow) => {
|
|
47
|
-
* return await executeEmbeddedSignInFlow({ flow });
|
|
48
|
-
* };
|
|
49
|
-
*
|
|
50
|
-
* return (
|
|
51
|
-
* <SignIn
|
|
52
|
-
* onInitialize={handleInitialize}
|
|
53
|
-
* onSubmit={handleSubmit}
|
|
54
|
-
* onSuccess={(authData) => {
|
|
55
|
-
* console.log('Authentication successful:', authData);
|
|
56
|
-
* }}
|
|
57
|
-
* onError={(error) => {
|
|
58
|
-
* console.error('Authentication failed:', error);
|
|
59
|
-
* }}
|
|
60
|
-
* size="medium"
|
|
61
|
-
* variant="outlined"
|
|
62
|
-
* afterSignInUrl="/dashboard"
|
|
63
|
-
* />
|
|
64
|
-
* );
|
|
65
|
-
* };
|
|
66
|
-
* ```
|
|
67
29
|
*/
|
|
68
30
|
declare const SignIn: FC<SignInProps>;
|
|
69
31
|
export default SignIn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignIn.d.ts","sourceRoot":"","sources":["../../../../../../src/client/components/presentation/SignIn/SignIn.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"SignIn.d.ts","sourceRoot":"","sources":["../../../../../../src/client/components/presentation/SignIn/SignIn.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,EAAa,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAC,EAAE,EAAC,MAAM,OAAO,CAAC;AAGzB;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,EAAE,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC,CAAC;AAE5G;;;;GAIG;AACH,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAwB3B,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignUp.d.ts","sourceRoot":"","sources":["../../../../../../src/client/components/presentation/SignUp/SignUp.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"SignUp.d.ts","sourceRoot":"","sources":["../../../../../../src/client/components/presentation/SignUp/SignUp.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAKH,OAAO,EAAa,eAAe,EAAC,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAC,EAAE,EAAC,MAAM,OAAO,CAAC;AAGzB;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAyD3B,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThunderIDProvider.d.ts","sourceRoot":"","sources":["../../../../../src/client/contexts/ThunderID/ThunderIDProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EACL,2BAA2B,
|
|
1
|
+
{"version":3,"file":"ThunderIDProvider.d.ts","sourceRoot":"","sources":["../../../../../src/client/contexts/ThunderID/ThunderIDProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EACL,2BAA2B,EAG3B,YAAY,EACZ,qBAAqB,EACrB,IAAI,EACJ,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,yBAAyB,EAE1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAML,sBAAsB,EAIvB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAC,EAAE,EAAE,iBAAiB,EAAkD,MAAM,OAAO,CAAC;AAC7F,OAAyB,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAC,aAAa,EAAC,MAAM,sCAAsC,CAAC;AAGnE;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,SAAS,GAAG,UAAU,CAAC,CAAC,GACtG,IAAI,CAAC,sBAAsB,EAAE,SAAS,GAAG,UAAU,CAAC,GAAG;IACrD,aAAa,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC;IACtD,kBAAkB,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC/C,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAClC,kBAAkB,EAAE,CAAC,OAAO,EAAE,yBAAyB,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IACrG,mBAAmB,EAAE,YAAY,CAAC;IAClC,mBAAmB,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACjG,mBAAmB,EAAE,CACnB,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15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import {
|
|
18
|
+
import { EmbeddedFlowExecuteRequestConfig } from '@thunderid/node';
|
|
19
19
|
/**
|
|
20
20
|
* Server action for signing in a user.
|
|
21
21
|
* Handles the embedded sign-in flow and manages session cookies.
|
|
@@ -24,11 +24,11 @@ import { EmbeddedSignInFlowHandleRequestPayload, EmbeddedFlowExecuteRequestConfi
|
|
|
24
24
|
* @param request - The embedded flow execute request config
|
|
25
25
|
* @returns Promise that resolves when sign-in is complete
|
|
26
26
|
*/
|
|
27
|
-
declare const signInAction: (payload?:
|
|
27
|
+
declare const signInAction: (payload?: any, request?: EmbeddedFlowExecuteRequestConfig) => Promise<{
|
|
28
28
|
data?: {
|
|
29
29
|
afterSignInUrl?: string;
|
|
30
30
|
signInUrl?: string;
|
|
31
|
-
} |
|
|
31
|
+
} | Record<string, unknown>;
|
|
32
32
|
error?: string;
|
|
33
33
|
success: boolean;
|
|
34
34
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signInAction.d.ts","sourceRoot":"","sources":["../../../../src/server/actions/signInAction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAGL,
|
|
1
|
+
{"version":3,"file":"signInAction.d.ts","sourceRoot":"","sources":["../../../../src/server/actions/signInAction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAGL,gCAAgC,EAGjC,MAAM,iBAAiB,CAAC;AASzB;;;;;;;GAOG;AACH,QAAA,MAAM,YAAY,GAChB,UAAU,GAAG,EACb,UAAU,gCAAgC,KACzC,OAAO,CAAC;IACT,IAAI,CAAC,EACD;QACE,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GACD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB,CAiHA,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -15,20 +15,13 @@
|
|
|
15
15
|
* specific language governing permissions and limitations
|
|
16
16
|
* under the License.
|
|
17
17
|
*/
|
|
18
|
-
import { EmbeddedFlowExecuteRequestPayload, EmbeddedFlowExecuteResponse } from '@thunderid/node';
|
|
19
18
|
/**
|
|
20
|
-
* Server action for
|
|
21
|
-
* Handles the embedded sign-in flow and manages session cookies.
|
|
22
|
-
*
|
|
23
|
-
* @param payload - The embedded sign-in flow payload
|
|
24
|
-
* @param request - The embedded flow execute request config
|
|
25
|
-
* @returns Promise that resolves when sign-in is complete
|
|
19
|
+
* Server action for initiating the sign-up redirect flow.
|
|
26
20
|
*/
|
|
27
|
-
declare const signUpAction: (
|
|
21
|
+
declare const signUpAction: () => Promise<{
|
|
28
22
|
data?: {
|
|
29
|
-
afterSignUpUrl?: string;
|
|
30
23
|
signUpUrl?: string;
|
|
31
|
-
}
|
|
24
|
+
};
|
|
32
25
|
error?: string;
|
|
33
26
|
success: boolean;
|
|
34
27
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signUpAction.d.ts","sourceRoot":"","sources":["../../../../src/server/actions/signUpAction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"signUpAction.d.ts","sourceRoot":"","sources":["../../../../src/server/actions/signUpAction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH;;GAEG;AACH,QAAA,MAAM,YAAY,QAAa,OAAO,CAAC;IACrC,IAAI,CAAC,EAAE;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB,CAUA,CAAC;AAEF,eAAe,YAAY,CAAC"}
|