You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Define the URL that `@clerk/clerk-js` should be hot-loaded from
30
+
*/
29
31
clerkJSUrl?: string;
32
+
/**
33
+
* If your web application only uses Control components, you can set this value to `'headless'` and load a minimal ClerkJS bundle for optimal page performance.
34
+
*/
30
35
clerkJSVariant?: 'headless'|'';
36
+
/**
37
+
* Define the npm version for `@clerk/clerk-js`
38
+
*/
31
39
clerkJSVersion?: string;
32
-
sdkMetadata?: SDKMetadata;
40
+
/**
41
+
* The Clerk publishable key for your instance
42
+
* @note This can be found in your Clerk Dashboard on the [API Keys](https://dashboard.clerk.com/last-active?path=api-keys) page
43
+
*/
33
44
publishableKey: string;
45
+
/**
46
+
* This nonce value will be passed through to the `@clerk/clerk-js` script tag.
47
+
* @note You can use this to implement [strict-dynamic CSP](https://clerk.com/docs/security/clerk-csp#implementing-a-strict-dynamic-csp)
* Contains information about the SDK that the host application is using.
45
+
* For example, if Clerk is loaded through `@clerk/nextjs`, this would be `{ name: '@clerk/nextjs', version: '1.0.0' }`
46
+
*/
43
47
exporttypeSDKMetadata={
48
+
/**
49
+
* The npm package name of the SDK
50
+
*/
44
51
name: string;
52
+
/**
53
+
* The npm package version of the SDK
54
+
*/
45
55
version: string;
56
+
/**
57
+
* Typically this will be the NODE_ENV that the SDK is currently running in
58
+
*/
46
59
environment?: string;
47
60
};
48
61
@@ -608,12 +621,24 @@ export type ClerkThemeOptions = DeepSnakeToCamel<DeepPartial<DisplayThemeJSON>>;
608
621
*/
609
622
typeClerkOptionsNavigation=
610
623
|{
624
+
/**
625
+
* A function which takes the destination path as an argument and performs a "push" navigation.
626
+
*/
611
627
routerPush?: never;
612
-
routerDebug?: boolean;
628
+
/**
629
+
* A function which takes the destination path as an argument and performs a "replace" navigation.
630
+
*/
613
631
routerReplace?: never;
632
+
routerDebug?: boolean;
614
633
}
615
634
|{
635
+
/**
636
+
* A function which takes the destination path as an argument and performs a "push" navigation.
637
+
*/
616
638
routerPush: RouterFn;
639
+
/**
640
+
* A function which takes the destination path as an argument and performs a "replace" navigation.
641
+
*/
617
642
routerReplace: RouterFn;
618
643
routerDebug?: boolean;
619
644
};
@@ -626,29 +651,53 @@ export type ClerkOptions = ClerkOptionsNavigation &
626
651
LegacyRedirectProps&
627
652
AfterSignOutUrl&
628
653
AfterMultiSessionSingleSignOutUrl&{
654
+
/**
655
+
* Optional object to style your components. Will only affect [Clerk Components](https://clerk.com/docs/components/overview) and not [Account Portal](https://clerk.com/docs/customization/account-portal/overview) pages.
656
+
*/
629
657
appearance?: Appearance;
658
+
/**
659
+
* Optional object to localize your components. Will only affect [Clerk Components](https://clerk.com/docs/components/overview) and not [Account Portal](https://clerk.com/docs/customization/account-portal/overview) pages.
/** Controls if ClerkJS will load with the standard browser setup using Clerk cookies */
634
665
standardBrowser?: boolean;
635
-
/** Optional support email for display in authentication screens */
666
+
/**
667
+
* Optional support email for display in authentication screens. Will only affect [Clerk Components](https://clerk.com/docs/components/overview) and not [Account Portal](https://clerk.com/docs/customization/account-portal/overview) pages.
668
+
*/
636
669
supportEmail?: string;
637
670
touchSession?: boolean;
671
+
/**
672
+
* This URL will be used for any redirects that might happen and needs to point to your primary application on the client-side. This option is optional for production instances. It's required for development instances if you a use satellite application.
673
+
*/
638
674
signInUrl?: string;
675
+
/** This URL will be used for any redirects that might happen and needs to point to your primary application on the client-side. This option is optional for production instances and required for development instances. */
639
676
signUpUrl?: string;
677
+
/**
678
+
* Optional array of domains used to validate against the query param of an auth redirect. If no match is made, the redirect is considered unsafe and the default redirect will be used with a warning passed to the console.
679
+
*/
640
680
allowedRedirectOrigins?: Array<string|RegExp>;
681
+
/**
682
+
* This option defines that the application is a satellite application.
683
+
*/
641
684
isSatellite?: boolean|((url: URL)=>boolean);
642
685
/**
643
-
* Telemetry options
686
+
* Controls whether or not Clerk will collect [telemetry data](https://clerk.com/docs/telemetry)
644
687
*/
645
688
telemetry?:
646
689
|false
647
690
|{
648
691
disabled?: boolean;
692
+
/**
693
+
* Telemetry events are only logged to the console and not sent to Clerk
694
+
*/
649
695
debug?: boolean;
650
696
};
651
697
698
+
/**
699
+
* Contains information about the SDK that the host application is using. You don't need to set this value yourself unless you're [developing an SDK](https://clerk.com/docs/references/sdk/overview).
0 commit comments