Skip to content

Commit

Permalink
Merge branch 'main' into aa/fix-component-references
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriaxyz authored Dec 11, 2024
2 parents bd23ea0 + 7177bf3 commit afd8f63
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
9 changes: 8 additions & 1 deletion docs/components/clerk-provider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,14 @@ The recommended approach is to wrap your entire app with `<ClerkProvider>` at th
- `allowedRedirectOrigins?`
- `Array<string | RegExp>`

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.
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.

---

- `allowedRedirectProtocols?`
- `Array<string>`

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.

---

Expand Down
13 changes: 10 additions & 3 deletions docs/references/javascript/clerk/clerk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -457,10 +457,17 @@ All props below are optional.

---

- `allowedRedirectOrigins`
- `Array<string | RegExp> | undefined`
- `allowedRedirectOrigins?`
- `Array<string | RegExp>`

Optional array of domains used to validate against the query param of an auth redirect.<br />If no match is made, the redirect is considered unsafe and the default redirect will be used with a warning passed to the console.
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.

---

- `allowedRedirectProtocols?`
- `Array<string>`

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.

---

Expand Down
9 changes: 8 additions & 1 deletion docs/references/remix/clerk-app.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,14 @@ export default ClerkApp(App)
- `allowedRedirectOrigins?`
- `Array<string | RegExp>`

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.
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.

---

- `allowedRedirectProtocols?`
- `Array<string>`

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.
</Properties>

[components-ref]: /docs/components/overview
Expand Down

0 comments on commit afd8f63

Please sign in to comment.