-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into elef/core-1219-redirect-url-in-protect
- Loading branch information
Showing
808 changed files
with
4,043 additions
and
50,995 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@clerk/clerk-js': major | ||
'@clerk/clerk-react': major | ||
'@clerk/types': patch | ||
--- | ||
|
||
Drop `redirectToHome` redirect method in favour of `redirectToAfterSignUp` or `redirectToAfterSignIn`. | ||
|
||
When the `<SignIn/>` and `<SignUp/>` components are rendered while a user is already logged in, they will now redirect to the configured `afterSignIn` and `afterSignUp` URLs, respectively. Previously, the redirect URL was set to the home URL configured in the dashboard. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
'@clerk/chrome-extension': major | ||
--- | ||
|
||
Expand the ability for `@clerk/chrome-extension` WebSSO to sync with host applications which use URL-based session syncing. | ||
|
||
### How to Update | ||
|
||
**WebSSO Host Permissions:** | ||
|
||
_Local Development: You must have your explicit development domain added to your `manifest.json` file in order to use the WebSSO flow._ | ||
|
||
Example: | ||
|
||
```json | ||
{ | ||
"host_permissions": [ | ||
// ... | ||
"http://localhost" | ||
// ... | ||
] | ||
} | ||
``` | ||
|
||
_Production: You must have your explicit Clerk Frontend API domain added to your `manifest.json` file in order to use the WebSSO flow._ | ||
|
||
Example: | ||
```json | ||
{ | ||
"host_permissions": [ | ||
// ... | ||
"https://clerk.example.com" | ||
// ... | ||
] | ||
} | ||
``` | ||
|
||
**WebSSO Provider settings:** | ||
|
||
```tsx | ||
<ClerkProvider | ||
publishableKey={publishableKey} | ||
routerPush={to => navigate(to)} | ||
routerReplace={to => navigate(to, { replace: true })} | ||
syncSessionWithTab | ||
|
||
// tokenCache is now storageCache (See below) | ||
storageCache={/* ... */} | ||
> | ||
``` | ||
|
||
**WebSSO Storage Cache Interface:** | ||
|
||
With the prop change from `tokenCache` to `storageCache`, the interface has been expanded to allow for more flexibility. | ||
|
||
The new interface is as follows: | ||
|
||
```ts | ||
type StorageCache = { | ||
createKey: (...keys: string[]) => string; | ||
get: <T = any>(key: string) => Promise<T>; | ||
remove: (key: string) => Promise<void>; | ||
set: (key: string, value: string) => Promise<void>; | ||
}; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.