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
// Custom protocol URLs have an origin value of 'null'. In many cases, this indicates deep-linking and we want to ensure the customNavigate function is used if available.
* Helper utility to navigate via window.location.href. Also dispatches a clerk:beforeunload custom event.
16
+
*
17
+
* Note that this utility should **never** be called with a user-provided URL. We make no specific checks against the contents of the URL here and assume it is safe. Use `Clerk.navigate()` instead for user-provided URLs.
Copy file name to clipboardexpand all lines: packages/types/src/clerk.ts
+5-1
Original file line number
Diff line number
Diff line change
@@ -711,9 +711,13 @@ export type ClerkOptions = ClerkOptionsNavigation &
711
711
/** 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. */
712
712
signUpUrl?: string;
713
713
/**
714
-
* 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.
714
+
* An optional array of domains to validate user-provided redirect URLs against. If no match is made, the redirect is considered unsafe and the default redirect will be used with a warning logged in the console.
715
715
*/
716
716
allowedRedirectOrigins?: Array<string|RegExp>;
717
+
/**
718
+
* An optional array of protocols to validate user-provided redirect URLs against. If no match is made, the redirect is considered unsafe and the default redirect will be used with a warning logged in the console.
719
+
*/
720
+
allowedRedirectProtocols?: Array<string>;
717
721
/**
718
722
* This option defines that the application is a satellite application.
0 commit comments