@clerk/react-router 3.4.1 → 3.4.2-canary.v20260610190754
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/ReactRouterClerkProvider-trOD2EJy.d.ts +17 -0
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +3 -3
- package/dist/client/ReactRouterClerkProvider.d.ts +2 -13
- package/dist/client/ReactRouterClerkProvider.js +75 -121
- package/dist/client/ReactRouterClerkProvider.js.map +1 -1
- package/dist/client/ReactRouterOptionsContext.d.ts +6 -7
- package/dist/client/ReactRouterOptionsContext.js +11 -12
- package/dist/client/ReactRouterOptionsContext.js.map +1 -1
- package/dist/client/index.d.ts +4 -9
- package/dist/client/index.js +4 -12
- package/dist/client/types.d.ts +2 -56
- package/dist/client/types.js +1 -1
- package/dist/client/uiComponents.d.ts +2 -10
- package/dist/client/uiComponents.js +21 -34
- package/dist/client/uiComponents.js.map +1 -1
- package/dist/client/useAwaitableNavigate.d.ts +4 -2
- package/dist/client/useAwaitableNavigate.js +22 -21
- package/dist/client/useAwaitableNavigate.js.map +1 -1
- package/dist/client/usePathnameWithoutSplatRouteParams.d.ts +3 -1
- package/dist/client/usePathnameWithoutSplatRouteParams.js +10 -12
- package/dist/client/usePathnameWithoutSplatRouteParams.js.map +1 -1
- package/dist/errorThrower.d.ts +4 -4
- package/dist/errorThrower.js +6 -5
- package/dist/errorThrower.js.map +1 -1
- package/dist/errors.d.ts +2 -4
- package/dist/errors.js +3 -28
- package/dist/global.d.ts +1 -0
- package/dist/index.d.ts +6 -9
- package/dist/index.js +12 -9
- package/dist/index.js.map +1 -1
- package/dist/legacy.d.ts +2 -1
- package/dist/legacy.js +2 -6
- package/dist/loadOptions-DNSRkrk0.d.ts +63 -0
- package/dist/server/clerkClient.d.ts +6 -8
- package/dist/server/clerkClient.js +19 -19
- package/dist/server/clerkClient.js.map +1 -1
- package/dist/server/clerkMiddleware.d.ts +12 -11
- package/dist/server/clerkMiddleware.js +83 -90
- package/dist/server/clerkMiddleware.js.map +1 -1
- package/dist/server/getAuth.d.ts +5 -3
- package/dist/server/getAuth.js +16 -23
- package/dist/server/getAuth.js.map +1 -1
- package/dist/server/index.d.ts +6 -10
- package/dist/server/index.js +5 -10
- package/dist/server/keyless/fileStorage.d.ts +6 -5
- package/dist/server/keyless/fileStorage.js +12 -11
- package/dist/server/keyless/fileStorage.js.map +1 -1
- package/dist/server/keyless/index.d.ts +6 -9
- package/dist/server/keyless/index.js +34 -40
- package/dist/server/keyless/index.js.map +1 -1
- package/dist/server/keyless/utils.d.ts +8 -11
- package/dist/server/keyless/utils.js +10 -12
- package/dist/server/keyless/utils.js.map +1 -1
- package/dist/server/loadOptions.d.ts +2 -64
- package/dist/server/loadOptions.js +50 -63
- package/dist/server/loadOptions.js.map +1 -1
- package/dist/server/rootAuthLoader.d.ts +17 -16
- package/dist/server/rootAuthLoader.js +45 -71
- package/dist/server/rootAuthLoader.js.map +1 -1
- package/dist/server/types.d.ts +2 -84
- package/dist/server/types.js +1 -1
- package/dist/server/utils.d.ts +13 -13
- package/dist/server/utils.js +93 -83
- package/dist/server/utils.js.map +1 -1
- package/dist/ssr/index.d.ts +4 -7
- package/dist/ssr/index.js +5 -5
- package/dist/ssr/index.js.map +1 -1
- package/dist/types/index.d.ts +4 -9
- package/dist/types/index.js +1 -1
- package/dist/types-C3uAu7q3.d.ts +58 -0
- package/dist/types-CkBFvMvW.d.ts +86 -0
- package/dist/uiComponents-CuYpqdGX.d.ts +12 -0
- package/dist/utils/assert.d.ts +4 -6
- package/dist/utils/assert.js +20 -29
- package/dist/utils/assert.js.map +1 -1
- package/dist/utils/env.d.ts +25 -23
- package/dist/utils/env.js +32 -33
- package/dist/utils/env.js.map +1 -1
- package/dist/utils/errors.d.ts +3 -1
- package/dist/utils/errors.js +15 -24
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/feature-flags.d.ts +3 -1
- package/dist/utils/feature-flags.js +7 -6
- package/dist/utils/feature-flags.js.map +1 -1
- package/dist/webhooks.d.ts +1 -1
- package/dist/webhooks.js +3 -3
- package/package.json +6 -6
- package/dist/api/index.js.map +0 -1
- package/dist/client/index.js.map +0 -1
- package/dist/client/types.js.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/global.d.d.ts +0 -2
- package/dist/global.d.js +0 -1
- package/dist/global.d.js.map +0 -1
- package/dist/legacy.js.map +0 -1
- package/dist/server/index.js.map +0 -1
- package/dist/server/types.js.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/webhooks.js.map +0 -1
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
// src/client/usePathnameWithoutSplatRouteParams.tsx
|
|
2
1
|
import { useRef } from "react";
|
|
3
2
|
import { useLocation, useParams } from "react-router";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return stablePath.current;
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
usePathnameWithoutSplatRouteParams
|
|
3
|
+
|
|
4
|
+
//#region src/client/usePathnameWithoutSplatRouteParams.tsx
|
|
5
|
+
const usePathnameWithoutSplatRouteParams = () => {
|
|
6
|
+
const params = useParams();
|
|
7
|
+
const { pathname } = useLocation();
|
|
8
|
+
const splatRouteParam = params["*"] || "";
|
|
9
|
+
return useRef(`/${pathname.replace(splatRouteParam, "").replace(/\/$/, "").replace(/^\//, "").trim()}`).current;
|
|
15
10
|
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { usePathnameWithoutSplatRouteParams };
|
|
16
14
|
//# sourceMappingURL=usePathnameWithoutSplatRouteParams.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/client/usePathnameWithoutSplatRouteParams.tsx"],"sourcesContent":["import { useRef } from 'react';\nimport { useLocation, useParams } from 'react-router';\n\nexport const usePathnameWithoutSplatRouteParams = () => {\n const params = useParams();\n const { pathname } = useLocation();\n\n // Get the splat route params\n // React Router stores splat route params in an object with a key of '*'\n // If there are no splat route params, we fallback to an empty string\n const splatRouteParam = params['*'] || '';\n\n // Remove the splat route param from the pathname\n // so we end up with the pathname where the components are mounted at\n // eg /user/123/profile/security will return /user/123/profile as the path\n const path = pathname.replace(splatRouteParam, '').replace(/\\/$/, '').replace(/^\\//, '').trim();\n\n const computedPath = `/${path}`;\n\n // Stabilize the base path to prevent race conditions during navigation away.\n // When the router navigates to a different route, useLocation() returns the\n // new pathname before this component unmounts. This causes the basePath to change,\n // which makes the SignIn/SignUp catch-all route fire RedirectToSignIn incorrectly.\n // Matches the pattern used in @clerk/nextjs usePathnameWithoutCatchAll.\n const stablePath = useRef(computedPath);\n return stablePath.current;\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePathnameWithoutSplatRouteParams.js","names":[],"sources":["../../src/client/usePathnameWithoutSplatRouteParams.tsx"],"sourcesContent":["import { useRef } from 'react';\nimport { useLocation, useParams } from 'react-router';\n\nexport const usePathnameWithoutSplatRouteParams = () => {\n const params = useParams();\n const { pathname } = useLocation();\n\n // Get the splat route params\n // React Router stores splat route params in an object with a key of '*'\n // If there are no splat route params, we fallback to an empty string\n const splatRouteParam = params['*'] || '';\n\n // Remove the splat route param from the pathname\n // so we end up with the pathname where the components are mounted at\n // eg /user/123/profile/security will return /user/123/profile as the path\n const path = pathname.replace(splatRouteParam, '').replace(/\\/$/, '').replace(/^\\//, '').trim();\n\n const computedPath = `/${path}`;\n\n // Stabilize the base path to prevent race conditions during navigation away.\n // When the router navigates to a different route, useLocation() returns the\n // new pathname before this component unmounts. This causes the basePath to change,\n // which makes the SignIn/SignUp catch-all route fire RedirectToSignIn incorrectly.\n // Matches the pattern used in @clerk/nextjs usePathnameWithoutCatchAll.\n const stablePath = useRef(computedPath);\n return stablePath.current;\n};\n"],"mappings":";;;;AAGA,MAAa,2CAA2C;CACtD,MAAM,SAAS,UAAU;CACzB,MAAM,EAAE,aAAa,YAAY;CAKjC,MAAM,kBAAkB,OAAO,QAAQ;CAevC,OADmB,OAAO,IATb,SAAS,QAAQ,iBAAiB,EAAE,CAAC,CAAC,QAAQ,OAAO,EAAE,CAAC,CAAC,QAAQ,OAAO,EAAE,CAAC,CAAC,KAE7D,GAQZ,CAAC,CAAC;AACpB"}
|
package/dist/errorThrower.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
//#region src/errorThrower.d.ts
|
|
2
|
+
declare const errorThrower: import("@clerk/shared/error").ErrorThrower;
|
|
3
|
+
//#endregion
|
|
5
4
|
export { errorThrower };
|
|
5
|
+
//# sourceMappingURL=errorThrower.d.ts.map
|
package/dist/errorThrower.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
// src/errorThrower.ts
|
|
2
1
|
import { buildErrorThrower } from "@clerk/shared/error";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
|
|
3
|
+
//#region src/errorThrower.ts
|
|
4
|
+
const errorThrower = buildErrorThrower({ packageName: "@clerk/react-router" });
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
export { errorThrower };
|
|
7
8
|
//# sourceMappingURL=errorThrower.js.map
|
package/dist/errorThrower.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/errorThrower.ts"],"sourcesContent":["import { buildErrorThrower } from '@clerk/shared/error';\n\nconst errorThrower = buildErrorThrower({ packageName: PACKAGE_NAME });\n\nexport { errorThrower };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"errorThrower.js","names":[],"sources":["../src/errorThrower.ts"],"sourcesContent":["import { buildErrorThrower } from '@clerk/shared/error';\n\nconst errorThrower = buildErrorThrower({ packageName: PACKAGE_NAME });\n\nexport { errorThrower };\n"],"mappings":";;;AAEA,MAAM,eAAe,kBAAkB,EAAE,mCAA0B,CAAC"}
|
package/dist/errors.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import '@clerk/backend/webhooks';
|
|
4
|
-
import '@clerk/backend';
|
|
1
|
+
import { ClerkAPIResponseError, ClerkOfflineError, ClerkRuntimeError, EmailLinkErrorCode, EmailLinkErrorCodeStatus, isClerkAPIResponseError, isClerkRuntimeError, isEmailLinkError, isKnownError, isMetamaskError, isReverificationCancelledError } from "@clerk/react/errors";
|
|
2
|
+
export { ClerkAPIResponseError, ClerkOfflineError, ClerkRuntimeError, EmailLinkErrorCode, EmailLinkErrorCodeStatus, isClerkAPIResponseError, isClerkRuntimeError, isEmailLinkError, isKnownError, isMetamaskError, isReverificationCancelledError };
|
package/dist/errors.js
CHANGED
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
ClerkOfflineError,
|
|
5
|
-
ClerkRuntimeError,
|
|
6
|
-
isClerkAPIResponseError,
|
|
7
|
-
isClerkRuntimeError,
|
|
8
|
-
isEmailLinkError,
|
|
9
|
-
isKnownError,
|
|
10
|
-
isMetamaskError,
|
|
11
|
-
isReverificationCancelledError,
|
|
12
|
-
EmailLinkErrorCode,
|
|
13
|
-
EmailLinkErrorCodeStatus
|
|
14
|
-
} from "@clerk/react/errors";
|
|
15
|
-
export {
|
|
16
|
-
ClerkAPIResponseError,
|
|
17
|
-
ClerkOfflineError,
|
|
18
|
-
ClerkRuntimeError,
|
|
19
|
-
EmailLinkErrorCode,
|
|
20
|
-
EmailLinkErrorCodeStatus,
|
|
21
|
-
isClerkAPIResponseError,
|
|
22
|
-
isClerkRuntimeError,
|
|
23
|
-
isEmailLinkError,
|
|
24
|
-
isKnownError,
|
|
25
|
-
isMetamaskError,
|
|
26
|
-
isReverificationCancelledError
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=errors.js.map
|
|
1
|
+
import { ClerkAPIResponseError, ClerkOfflineError, ClerkRuntimeError, EmailLinkErrorCode, EmailLinkErrorCodeStatus, isClerkAPIResponseError, isClerkRuntimeError, isEmailLinkError, isKnownError, isMetamaskError, isReverificationCancelledError } from "@clerk/react/errors";
|
|
2
|
+
|
|
3
|
+
export { ClerkAPIResponseError, ClerkOfflineError, ClerkRuntimeError, EmailLinkErrorCode, EmailLinkErrorCodeStatus, isClerkAPIResponseError, isClerkRuntimeError, isEmailLinkError, isKnownError, isMetamaskError, isReverificationCancelledError };
|
package/dist/global.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
export {
|
|
7
|
-
import '@clerk/react/internal';
|
|
8
|
-
import 'react';
|
|
9
|
-
import '@clerk/shared/types';
|
|
1
|
+
import { r as WithClerkState } from "./types-C3uAu7q3.js";
|
|
2
|
+
import { t as ClerkProvider } from "./ReactRouterClerkProvider-trOD2EJy.js";
|
|
3
|
+
import { i as UserProfile, n as SignIn, r as SignUp, t as OrganizationProfile } from "./uiComponents-CuYpqdGX.js";
|
|
4
|
+
import { getToken } from "@clerk/shared/getToken";
|
|
5
|
+
export * from "@clerk/react";
|
|
6
|
+
export { ClerkProvider, OrganizationProfile, SignIn, SignUp, UserProfile, type WithClerkState, getToken };
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import
|
|
1
|
+
import { ClerkProvider } from "./client/ReactRouterClerkProvider.js";
|
|
2
|
+
import { OrganizationProfile, SignIn, SignUp, UserProfile } from "./client/uiComponents.js";
|
|
3
|
+
import "./client/index.js";
|
|
4
4
|
import { setErrorThrowerOptions } from "@clerk/react/internal";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import { getToken } from "@clerk/shared/getToken";
|
|
6
|
+
|
|
7
|
+
export * from "@clerk/react"
|
|
8
|
+
|
|
9
|
+
//#region src/index.ts
|
|
10
|
+
if (typeof window !== "undefined" && typeof window.global === "undefined") window.global = window;
|
|
8
11
|
setErrorThrowerOptions({ packageName: "@clerk/react-router" });
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ClerkProvider, OrganizationProfile, SignIn, SignUp, UserProfile, getToken };
|
|
12
15
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["if (typeof window !== 'undefined' && typeof (window as any).global === 'undefined') {\n (window as any).global = window;\n}\n\nexport * from './client';\nexport { getToken } from '@clerk/shared/getToken';\n\n// Override Clerk React error thrower to show that errors come from @clerk/react-router\nimport { setErrorThrowerOptions } from '@clerk/react/internal';\nsetErrorThrowerOptions({ packageName: PACKAGE_NAME });\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["if (typeof window !== 'undefined' && typeof (window as any).global === 'undefined') {\n (window as any).global = window;\n}\n\nexport * from '@clerk/react';\nexport { ClerkProvider, SignIn, SignUp, OrganizationProfile, UserProfile, type WithClerkState } from './client';\nexport { getToken } from '@clerk/shared/getToken';\n\n// Override Clerk React error thrower to show that errors come from @clerk/react-router\nimport { setErrorThrowerOptions } from '@clerk/react/internal';\nsetErrorThrowerOptions({ packageName: PACKAGE_NAME });\n"],"mappings":";;;;;;;;;AAAA,IAAI,OAAO,WAAW,eAAe,OAAQ,OAAe,WAAW,aACrE,AAAC,OAAe,SAAS;AAS3B,uBAAuB,EAAE,mCAA0B,CAAC"}
|
package/dist/legacy.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { useSignIn, useSignUp } from "@clerk/react/legacy";
|
|
2
|
+
export { useSignIn, useSignUp };
|
package/dist/legacy.js
CHANGED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { n as ClerkMiddlewareOptions } from "./types-CkBFvMvW.js";
|
|
2
|
+
import { MiddlewareFunction } from "react-router";
|
|
3
|
+
|
|
4
|
+
//#region src/server/loadOptions.d.ts
|
|
5
|
+
type DataFunctionArgs = Parameters<MiddlewareFunction<Response>>[0];
|
|
6
|
+
declare const loadOptions: (args: DataFunctionArgs, overrides?: ClerkMiddlewareOptions) => {
|
|
7
|
+
secretKey: string;
|
|
8
|
+
machineSecretKey: string;
|
|
9
|
+
publishableKey: string;
|
|
10
|
+
jwtKey: string;
|
|
11
|
+
apiUrl: string;
|
|
12
|
+
domain: string;
|
|
13
|
+
isSatellite: boolean;
|
|
14
|
+
proxyUrl: string;
|
|
15
|
+
signInUrl: string;
|
|
16
|
+
signUpUrl: string;
|
|
17
|
+
signInForceRedirectUrl: string;
|
|
18
|
+
signUpForceRedirectUrl: string;
|
|
19
|
+
signInFallbackRedirectUrl: string;
|
|
20
|
+
signUpFallbackRedirectUrl: string;
|
|
21
|
+
organizationSyncOptions?: import("@clerk/backend/internal").OrganizationSyncOptions;
|
|
22
|
+
audience?: string | string[] | undefined;
|
|
23
|
+
authorizedParties?: string[] | undefined;
|
|
24
|
+
} | {
|
|
25
|
+
secretKey: string;
|
|
26
|
+
machineSecretKey: string;
|
|
27
|
+
publishableKey: string;
|
|
28
|
+
jwtKey: string;
|
|
29
|
+
apiUrl: string;
|
|
30
|
+
domain: string;
|
|
31
|
+
isSatellite: boolean;
|
|
32
|
+
proxyUrl: string;
|
|
33
|
+
signInUrl: string;
|
|
34
|
+
signUpUrl: string;
|
|
35
|
+
signInForceRedirectUrl: string;
|
|
36
|
+
signUpForceRedirectUrl: string;
|
|
37
|
+
signInFallbackRedirectUrl: string;
|
|
38
|
+
signUpFallbackRedirectUrl: string;
|
|
39
|
+
organizationSyncOptions?: import("@clerk/backend/internal").OrganizationSyncOptions;
|
|
40
|
+
audience?: string | string[] | undefined;
|
|
41
|
+
authorizedParties?: string[] | undefined;
|
|
42
|
+
} | {
|
|
43
|
+
secretKey: string;
|
|
44
|
+
machineSecretKey: string;
|
|
45
|
+
publishableKey: string;
|
|
46
|
+
jwtKey: string;
|
|
47
|
+
apiUrl: string;
|
|
48
|
+
domain: string;
|
|
49
|
+
isSatellite: boolean;
|
|
50
|
+
proxyUrl: string;
|
|
51
|
+
signInUrl: string;
|
|
52
|
+
signUpUrl: string;
|
|
53
|
+
signInForceRedirectUrl: string;
|
|
54
|
+
signUpForceRedirectUrl: string;
|
|
55
|
+
signInFallbackRedirectUrl: string;
|
|
56
|
+
signUpFallbackRedirectUrl: string;
|
|
57
|
+
organizationSyncOptions?: import("@clerk/backend/internal").OrganizationSyncOptions;
|
|
58
|
+
audience?: string | string[] | undefined;
|
|
59
|
+
authorizedParties?: string[] | undefined;
|
|
60
|
+
};
|
|
61
|
+
//#endregion
|
|
62
|
+
export { loadOptions as n, DataFunctionArgs as t };
|
|
63
|
+
//# sourceMappingURL=loadOptions-DNSRkrk0.d.ts.map
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { DataFunctionArgs } from
|
|
3
|
-
import { ClerkMiddlewareOptions } from './types.js';
|
|
4
|
-
import '@clerk/backend/internal';
|
|
5
|
-
import 'react-router';
|
|
6
|
-
import '@clerk/shared/types';
|
|
7
|
-
|
|
8
|
-
declare const clerkClient: (args: DataFunctionArgs, overrides?: ClerkMiddlewareOptions) => _clerk_backend.ClerkClient;
|
|
1
|
+
import { n as ClerkMiddlewareOptions } from "../types-CkBFvMvW.js";
|
|
2
|
+
import { t as DataFunctionArgs } from "../loadOptions-DNSRkrk0.js";
|
|
9
3
|
|
|
4
|
+
//#region src/server/clerkClient.d.ts
|
|
5
|
+
declare const clerkClient: (args: DataFunctionArgs, overrides?: ClerkMiddlewareOptions) => import("@clerk/backend").ClerkClient;
|
|
6
|
+
//#endregion
|
|
10
7
|
export { clerkClient };
|
|
8
|
+
//# sourceMappingURL=clerkClient.d.ts.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
// src/server/clerkClient.ts
|
|
2
|
-
import { createClerkClient } from "@clerk/backend";
|
|
3
1
|
import { loadOptions } from "./loadOptions.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
clerkClient
|
|
2
|
+
import { createClerkClient } from "@clerk/backend";
|
|
3
|
+
|
|
4
|
+
//#region src/server/clerkClient.ts
|
|
5
|
+
const clerkClient = (args, overrides = {}) => {
|
|
6
|
+
const { apiUrl, secretKey, jwtKey, proxyUrl, isSatellite, domain, publishableKey, machineSecretKey } = loadOptions(args, overrides);
|
|
7
|
+
return createClerkClient({
|
|
8
|
+
apiUrl,
|
|
9
|
+
secretKey,
|
|
10
|
+
jwtKey,
|
|
11
|
+
proxyUrl,
|
|
12
|
+
isSatellite,
|
|
13
|
+
domain,
|
|
14
|
+
publishableKey,
|
|
15
|
+
machineSecretKey,
|
|
16
|
+
userAgent: `@clerk/react-router@3.4.2-canary.v20260610190754`
|
|
17
|
+
});
|
|
21
18
|
};
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { clerkClient };
|
|
22
22
|
//# sourceMappingURL=clerkClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/server/clerkClient.ts"],"sourcesContent":["import { createClerkClient } from '@clerk/backend';\n\nimport { type DataFunctionArgs, loadOptions } from './loadOptions';\nimport type { ClerkMiddlewareOptions } from './types';\n\nexport const clerkClient = (args: DataFunctionArgs, overrides: ClerkMiddlewareOptions = {}) => {\n const options = loadOptions(args, overrides);\n\n const { apiUrl, secretKey, jwtKey, proxyUrl, isSatellite, domain, publishableKey, machineSecretKey } = options;\n\n return createClerkClient({\n apiUrl,\n secretKey,\n jwtKey,\n proxyUrl,\n isSatellite,\n domain,\n publishableKey,\n machineSecretKey,\n userAgent: `${PACKAGE_NAME}@${PACKAGE_VERSION}`,\n });\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"clerkClient.js","names":[],"sources":["../../src/server/clerkClient.ts"],"sourcesContent":["import { createClerkClient } from '@clerk/backend';\n\nimport { type DataFunctionArgs, loadOptions } from './loadOptions';\nimport type { ClerkMiddlewareOptions } from './types';\n\nexport const clerkClient = (args: DataFunctionArgs, overrides: ClerkMiddlewareOptions = {}) => {\n const options = loadOptions(args, overrides);\n\n const { apiUrl, secretKey, jwtKey, proxyUrl, isSatellite, domain, publishableKey, machineSecretKey } = options;\n\n return createClerkClient({\n apiUrl,\n secretKey,\n jwtKey,\n proxyUrl,\n isSatellite,\n domain,\n publishableKey,\n machineSecretKey,\n userAgent: `${PACKAGE_NAME}@${PACKAGE_VERSION}`,\n });\n};\n"],"mappings":";;;;AAKA,MAAa,eAAe,MAAwB,YAAoC,CAAC,MAAM;CAG7F,MAAM,EAAE,QAAQ,WAAW,QAAQ,UAAU,aAAa,QAAQ,gBAAgB,qBAFlE,YAAY,MAAM,SAE2E;CAE7G,OAAO,kBAAkB;EACvB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,WAAW;CACb,CAAC;AACH"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { MiddlewareFunction } from
|
|
3
|
-
import { AuthObject } from
|
|
4
|
-
import { RequestState } from
|
|
5
|
-
import { PendingSessionOptions } from
|
|
6
|
-
import { ClerkMiddlewareOptions, AdditionalStateOptions } from './types.js';
|
|
1
|
+
import { n as ClerkMiddlewareOptions, t as AdditionalStateOptions } from "../types-CkBFvMvW.js";
|
|
2
|
+
import { MiddlewareFunction } from "react-router";
|
|
3
|
+
import { AuthObject } from "@clerk/backend";
|
|
4
|
+
import { RequestState } from "@clerk/backend/internal";
|
|
5
|
+
import { PendingSessionOptions } from "@clerk/shared/types";
|
|
7
6
|
|
|
7
|
+
//#region src/server/clerkMiddleware.d.ts
|
|
8
8
|
type RequestStateContextValue = {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
requestState: RequestState<any>;
|
|
10
|
+
additionalState: AdditionalStateOptions;
|
|
11
11
|
};
|
|
12
|
-
declare const authFnContext:
|
|
13
|
-
declare const requestStateContext:
|
|
12
|
+
declare const authFnContext: import("react-router").RouterContext<((options?: PendingSessionOptions) => AuthObject) | null>;
|
|
13
|
+
declare const requestStateContext: import("react-router").RouterContext<RequestStateContextValue | null>;
|
|
14
14
|
/**
|
|
15
15
|
* Middleware that integrates Clerk authentication into your React Router application.
|
|
16
16
|
* It checks the request's cookies and headers for a session JWT and, if found,
|
|
@@ -28,5 +28,6 @@ declare const requestStateContext: react_router.RouterContext<RequestStateContex
|
|
|
28
28
|
* export const middleware: Route.MiddlewareFunction[] = [clerkMiddleware()]
|
|
29
29
|
*/
|
|
30
30
|
declare const clerkMiddleware: (options?: ClerkMiddlewareOptions) => MiddlewareFunction<Response>;
|
|
31
|
-
|
|
31
|
+
//#endregion
|
|
32
32
|
export { authFnContext, clerkMiddleware, requestStateContext };
|
|
33
|
+
//# sourceMappingURL=clerkMiddleware.d.ts.map
|
|
@@ -1,94 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { handleNetlifyCacheInDevInstance } from "@clerk/shared/netlifyCacheHandler";
|
|
4
|
-
import { createContext } from "react-router";
|
|
1
|
+
import { patchRequest } from "./utils.js";
|
|
2
|
+
import { loadOptions } from "./loadOptions.js";
|
|
5
3
|
import { clerkClient } from "./clerkClient.js";
|
|
6
4
|
import { resolveKeysWithKeylessFallback } from "./keyless/utils.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
return response;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
export {
|
|
90
|
-
authFnContext,
|
|
91
|
-
clerkMiddleware,
|
|
92
|
-
requestStateContext
|
|
5
|
+
import { createContext } from "react-router";
|
|
6
|
+
import { AuthStatus, constants, createClerkRequest } from "@clerk/backend/internal";
|
|
7
|
+
import { handleNetlifyCacheInDevInstance } from "@clerk/shared/netlifyCacheHandler";
|
|
8
|
+
|
|
9
|
+
//#region src/server/clerkMiddleware.ts
|
|
10
|
+
const authFnContext = createContext(null);
|
|
11
|
+
const requestStateContext = createContext(null);
|
|
12
|
+
/**
|
|
13
|
+
* Middleware that integrates Clerk authentication into your React Router application.
|
|
14
|
+
* It checks the request's cookies and headers for a session JWT and, if found,
|
|
15
|
+
* attaches the Auth object to a context.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* // react-router.config.ts
|
|
19
|
+
* export default {
|
|
20
|
+
* future: {
|
|
21
|
+
* v8_middleware: true,
|
|
22
|
+
* },
|
|
23
|
+
* }
|
|
24
|
+
*
|
|
25
|
+
* // root.tsx
|
|
26
|
+
* export const middleware: Route.MiddlewareFunction[] = [clerkMiddleware()]
|
|
27
|
+
*/
|
|
28
|
+
const clerkMiddleware = (options) => {
|
|
29
|
+
return async (args, next) => {
|
|
30
|
+
const clerkRequest = createClerkRequest(patchRequest(args.request));
|
|
31
|
+
const loadedOptions = loadOptions(args, options);
|
|
32
|
+
const { publishableKey, secretKey, claimUrl: __keylessClaimUrl, apiKeysUrl: __keylessApiKeysUrl } = await resolveKeysWithKeylessFallback(loadedOptions.publishableKey, loadedOptions.secretKey, args, options);
|
|
33
|
+
if (publishableKey) loadedOptions.publishableKey = publishableKey;
|
|
34
|
+
if (secretKey) loadedOptions.secretKey = secretKey;
|
|
35
|
+
const { apiUrl, jwtKey, proxyUrl, isSatellite, domain, machineSecretKey, audience, authorizedParties, signInUrl, signUpUrl, organizationSyncOptions } = loadedOptions;
|
|
36
|
+
const requestState = await clerkClient(args, options).authenticateRequest(clerkRequest, {
|
|
37
|
+
apiUrl,
|
|
38
|
+
secretKey: loadedOptions.secretKey,
|
|
39
|
+
jwtKey,
|
|
40
|
+
proxyUrl,
|
|
41
|
+
isSatellite,
|
|
42
|
+
domain,
|
|
43
|
+
publishableKey: loadedOptions.publishableKey,
|
|
44
|
+
machineSecretKey,
|
|
45
|
+
audience,
|
|
46
|
+
authorizedParties,
|
|
47
|
+
organizationSyncOptions,
|
|
48
|
+
signInUrl,
|
|
49
|
+
signUpUrl,
|
|
50
|
+
acceptsToken: "any"
|
|
51
|
+
});
|
|
52
|
+
const locationHeader = requestState.headers.get(constants.Headers.Location);
|
|
53
|
+
if (locationHeader) {
|
|
54
|
+
handleNetlifyCacheInDevInstance({
|
|
55
|
+
locationHeader,
|
|
56
|
+
requestStateHeaders: requestState.headers,
|
|
57
|
+
publishableKey: requestState.publishableKey
|
|
58
|
+
});
|
|
59
|
+
return new Response(null, {
|
|
60
|
+
status: 307,
|
|
61
|
+
headers: requestState.headers
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
if (requestState.status === AuthStatus.Handshake) throw new Error("Clerk: handshake status without redirect");
|
|
65
|
+
args.context.set(authFnContext, (opts) => requestState.toAuth(opts));
|
|
66
|
+
args.context.set(requestStateContext, {
|
|
67
|
+
requestState,
|
|
68
|
+
additionalState: {
|
|
69
|
+
__keylessClaimUrl,
|
|
70
|
+
__keylessApiKeysUrl,
|
|
71
|
+
signInForceRedirectUrl: loadedOptions.signInForceRedirectUrl,
|
|
72
|
+
signUpForceRedirectUrl: loadedOptions.signUpForceRedirectUrl,
|
|
73
|
+
signInFallbackRedirectUrl: loadedOptions.signInFallbackRedirectUrl,
|
|
74
|
+
signUpFallbackRedirectUrl: loadedOptions.signUpFallbackRedirectUrl
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
const response = await next();
|
|
78
|
+
if (requestState.headers) requestState.headers.forEach((value, key) => {
|
|
79
|
+
response.headers.append(key, value);
|
|
80
|
+
});
|
|
81
|
+
return response;
|
|
82
|
+
};
|
|
93
83
|
};
|
|
84
|
+
|
|
85
|
+
//#endregion
|
|
86
|
+
export { authFnContext, clerkMiddleware, requestStateContext };
|
|
94
87
|
//# sourceMappingURL=clerkMiddleware.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/server/clerkMiddleware.ts"],"sourcesContent":["import type { AuthObject } from '@clerk/backend';\nimport type { RequestState } from '@clerk/backend/internal';\nimport { AuthStatus, constants, createClerkRequest } from '@clerk/backend/internal';\nimport { handleNetlifyCacheInDevInstance } from '@clerk/shared/netlifyCacheHandler';\nimport type { PendingSessionOptions } from '@clerk/shared/types';\nimport type { MiddlewareFunction } from 'react-router';\nimport { createContext } from 'react-router';\n\nimport { clerkClient } from './clerkClient';\nimport { resolveKeysWithKeylessFallback } from './keyless/utils';\nimport { loadOptions } from './loadOptions';\nimport type { AdditionalStateOptions, ClerkMiddlewareOptions } from './types';\nimport { patchRequest } from './utils';\n\ntype RequestStateContextValue = {\n requestState: RequestState<any>;\n additionalState: AdditionalStateOptions;\n};\n\nexport const authFnContext = createContext<((options?: PendingSessionOptions) => AuthObject) | null>(null);\nexport const requestStateContext = createContext<RequestStateContextValue | null>(null);\n\n/**\n * Middleware that integrates Clerk authentication into your React Router application.\n * It checks the request's cookies and headers for a session JWT and, if found,\n * attaches the Auth object to a context.\n *\n * @example\n * // react-router.config.ts\n * export default {\n * future: {\n * v8_middleware: true,\n * },\n * }\n *\n * // root.tsx\n * export const middleware: Route.MiddlewareFunction[] = [clerkMiddleware()]\n */\nexport const clerkMiddleware = (options?: ClerkMiddlewareOptions): MiddlewareFunction<Response> => {\n return async (args, next) => {\n const clerkRequest = createClerkRequest(patchRequest(args.request));\n const loadedOptions = loadOptions(args, options);\n\n const {\n publishableKey,\n secretKey,\n claimUrl: __keylessClaimUrl,\n apiKeysUrl: __keylessApiKeysUrl,\n } = await resolveKeysWithKeylessFallback(loadedOptions.publishableKey, loadedOptions.secretKey, args, options);\n\n if (publishableKey) {\n loadedOptions.publishableKey = publishableKey;\n }\n if (secretKey) {\n loadedOptions.secretKey = secretKey;\n }\n\n // Pick only the properties needed by authenticateRequest.\n // Used when manually providing options to the middleware.\n const {\n apiUrl,\n jwtKey,\n proxyUrl,\n isSatellite,\n domain,\n machineSecretKey,\n audience,\n authorizedParties,\n signInUrl,\n signUpUrl,\n organizationSyncOptions,\n } = loadedOptions;\n\n const requestState = await clerkClient(args, options).authenticateRequest(clerkRequest, {\n apiUrl,\n secretKey: loadedOptions.secretKey,\n jwtKey,\n proxyUrl,\n isSatellite,\n domain,\n publishableKey: loadedOptions.publishableKey,\n machineSecretKey,\n audience,\n authorizedParties,\n organizationSyncOptions,\n signInUrl,\n signUpUrl,\n acceptsToken: 'any',\n });\n\n const locationHeader = requestState.headers.get(constants.Headers.Location);\n if (locationHeader) {\n handleNetlifyCacheInDevInstance({\n locationHeader,\n requestStateHeaders: requestState.headers,\n publishableKey: requestState.publishableKey,\n });\n // Trigger a handshake redirect\n return new Response(null, { status: 307, headers: requestState.headers });\n }\n\n if (requestState.status === AuthStatus.Handshake) {\n throw new Error('Clerk: handshake status without redirect');\n }\n\n args.context.set(authFnContext, (opts?: PendingSessionOptions) => requestState.toAuth(opts));\n args.context.set(requestStateContext, {\n requestState,\n additionalState: {\n __keylessClaimUrl,\n __keylessApiKeysUrl,\n signInForceRedirectUrl: loadedOptions.signInForceRedirectUrl,\n signUpForceRedirectUrl: loadedOptions.signUpForceRedirectUrl,\n signInFallbackRedirectUrl: loadedOptions.signInFallbackRedirectUrl,\n signUpFallbackRedirectUrl: loadedOptions.signUpFallbackRedirectUrl,\n },\n });\n\n const response = await next();\n\n if (requestState.headers) {\n requestState.headers.forEach((value, key) => {\n response.headers.append(key, value);\n });\n }\n\n return response;\n };\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"clerkMiddleware.js","names":[],"sources":["../../src/server/clerkMiddleware.ts"],"sourcesContent":["import type { AuthObject } from '@clerk/backend';\nimport type { RequestState } from '@clerk/backend/internal';\nimport { AuthStatus, constants, createClerkRequest } from '@clerk/backend/internal';\nimport { handleNetlifyCacheInDevInstance } from '@clerk/shared/netlifyCacheHandler';\nimport type { PendingSessionOptions } from '@clerk/shared/types';\nimport type { MiddlewareFunction } from 'react-router';\nimport { createContext } from 'react-router';\n\nimport { clerkClient } from './clerkClient';\nimport { resolveKeysWithKeylessFallback } from './keyless/utils';\nimport { loadOptions } from './loadOptions';\nimport type { AdditionalStateOptions, ClerkMiddlewareOptions } from './types';\nimport { patchRequest } from './utils';\n\ntype RequestStateContextValue = {\n requestState: RequestState<any>;\n additionalState: AdditionalStateOptions;\n};\n\nexport const authFnContext = createContext<((options?: PendingSessionOptions) => AuthObject) | null>(null);\nexport const requestStateContext = createContext<RequestStateContextValue | null>(null);\n\n/**\n * Middleware that integrates Clerk authentication into your React Router application.\n * It checks the request's cookies and headers for a session JWT and, if found,\n * attaches the Auth object to a context.\n *\n * @example\n * // react-router.config.ts\n * export default {\n * future: {\n * v8_middleware: true,\n * },\n * }\n *\n * // root.tsx\n * export const middleware: Route.MiddlewareFunction[] = [clerkMiddleware()]\n */\nexport const clerkMiddleware = (options?: ClerkMiddlewareOptions): MiddlewareFunction<Response> => {\n return async (args, next) => {\n const clerkRequest = createClerkRequest(patchRequest(args.request));\n const loadedOptions = loadOptions(args, options);\n\n const {\n publishableKey,\n secretKey,\n claimUrl: __keylessClaimUrl,\n apiKeysUrl: __keylessApiKeysUrl,\n } = await resolveKeysWithKeylessFallback(loadedOptions.publishableKey, loadedOptions.secretKey, args, options);\n\n if (publishableKey) {\n loadedOptions.publishableKey = publishableKey;\n }\n if (secretKey) {\n loadedOptions.secretKey = secretKey;\n }\n\n // Pick only the properties needed by authenticateRequest.\n // Used when manually providing options to the middleware.\n const {\n apiUrl,\n jwtKey,\n proxyUrl,\n isSatellite,\n domain,\n machineSecretKey,\n audience,\n authorizedParties,\n signInUrl,\n signUpUrl,\n organizationSyncOptions,\n } = loadedOptions;\n\n const requestState = await clerkClient(args, options).authenticateRequest(clerkRequest, {\n apiUrl,\n secretKey: loadedOptions.secretKey,\n jwtKey,\n proxyUrl,\n isSatellite,\n domain,\n publishableKey: loadedOptions.publishableKey,\n machineSecretKey,\n audience,\n authorizedParties,\n organizationSyncOptions,\n signInUrl,\n signUpUrl,\n acceptsToken: 'any',\n });\n\n const locationHeader = requestState.headers.get(constants.Headers.Location);\n if (locationHeader) {\n handleNetlifyCacheInDevInstance({\n locationHeader,\n requestStateHeaders: requestState.headers,\n publishableKey: requestState.publishableKey,\n });\n // Trigger a handshake redirect\n return new Response(null, { status: 307, headers: requestState.headers });\n }\n\n if (requestState.status === AuthStatus.Handshake) {\n throw new Error('Clerk: handshake status without redirect');\n }\n\n args.context.set(authFnContext, (opts?: PendingSessionOptions) => requestState.toAuth(opts));\n args.context.set(requestStateContext, {\n requestState,\n additionalState: {\n __keylessClaimUrl,\n __keylessApiKeysUrl,\n signInForceRedirectUrl: loadedOptions.signInForceRedirectUrl,\n signUpForceRedirectUrl: loadedOptions.signUpForceRedirectUrl,\n signInFallbackRedirectUrl: loadedOptions.signInFallbackRedirectUrl,\n signUpFallbackRedirectUrl: loadedOptions.signUpFallbackRedirectUrl,\n },\n });\n\n const response = await next();\n\n if (requestState.headers) {\n requestState.headers.forEach((value, key) => {\n response.headers.append(key, value);\n });\n }\n\n return response;\n };\n};\n"],"mappings":";;;;;;;;;AAmBA,MAAa,gBAAgB,cAAwE,IAAI;AACzG,MAAa,sBAAsB,cAA+C,IAAI;;;;;;;;;;;;;;;;;AAkBtF,MAAa,mBAAmB,YAAmE;CACjG,OAAO,OAAO,MAAM,SAAS;EAC3B,MAAM,eAAe,mBAAmB,aAAa,KAAK,OAAO,CAAC;EAClE,MAAM,gBAAgB,YAAY,MAAM,OAAO;EAE/C,MAAM,EACJ,gBACA,WACA,UAAU,mBACV,YAAY,wBACV,MAAM,+BAA+B,cAAc,gBAAgB,cAAc,WAAW,MAAM,OAAO;EAE7G,IAAI,gBACF,cAAc,iBAAiB;EAEjC,IAAI,WACF,cAAc,YAAY;EAK5B,MAAM,EACJ,QACA,QACA,UACA,aACA,QACA,kBACA,UACA,mBACA,WACA,WACA,4BACE;EAEJ,MAAM,eAAe,MAAM,YAAY,MAAM,OAAO,CAAC,CAAC,oBAAoB,cAAc;GACtF;GACA,WAAW,cAAc;GACzB;GACA;GACA;GACA;GACA,gBAAgB,cAAc;GAC9B;GACA;GACA;GACA;GACA;GACA;GACA,cAAc;EAChB,CAAC;EAED,MAAM,iBAAiB,aAAa,QAAQ,IAAI,UAAU,QAAQ,QAAQ;EAC1E,IAAI,gBAAgB;GAClB,gCAAgC;IAC9B;IACA,qBAAqB,aAAa;IAClC,gBAAgB,aAAa;GAC/B,CAAC;GAED,OAAO,IAAI,SAAS,MAAM;IAAE,QAAQ;IAAK,SAAS,aAAa;GAAQ,CAAC;EAC1E;EAEA,IAAI,aAAa,WAAW,WAAW,WACrC,MAAM,IAAI,MAAM,0CAA0C;EAG5D,KAAK,QAAQ,IAAI,gBAAgB,SAAiC,aAAa,OAAO,IAAI,CAAC;EAC3F,KAAK,QAAQ,IAAI,qBAAqB;GACpC;GACA,iBAAiB;IACf;IACA;IACA,wBAAwB,cAAc;IACtC,wBAAwB,cAAc;IACtC,2BAA2B,cAAc;IACzC,2BAA2B,cAAc;GAC3C;EACF,CAAC;EAED,MAAM,WAAW,MAAM,KAAK;EAE5B,IAAI,aAAa,SACf,aAAa,QAAQ,SAAS,OAAO,QAAQ;GAC3C,SAAS,QAAQ,OAAO,KAAK,KAAK;EACpC,CAAC;EAGH,OAAO;CACT;AACF"}
|
package/dist/server/getAuth.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { LoaderFunctionArgs } from "react-router";
|
|
2
|
+
import { GetAuthFn } from "@clerk/backend/internal";
|
|
3
3
|
|
|
4
|
+
//#region src/server/getAuth.d.ts
|
|
4
5
|
declare const getAuth: GetAuthFn<LoaderFunctionArgs, true>;
|
|
5
|
-
|
|
6
|
+
//#endregion
|
|
6
7
|
export { getAuth };
|
|
8
|
+
//# sourceMappingURL=getAuth.d.ts.map
|