Skip to content

Commit

Permalink
Merge branch 'main' into elef/core-1219-redirect-url-in-protect
Browse files Browse the repository at this point in the history
  • Loading branch information
panteliselef committed Dec 13, 2023
2 parents 5efed20 + 1b4eff9 commit 6ccbdff
Show file tree
Hide file tree
Showing 808 changed files with 4,043 additions and 50,995 deletions.
2 changes: 2 additions & 0 deletions .changeset/bright-ways-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 2 additions & 0 deletions .changeset/nine-beans-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
9 changes: 9 additions & 0 deletions .changeset/pretty-scissors-thank.md
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.
65 changes: 65 additions & 0 deletions .changeset/shiny-glasses-switch.md
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>;
};
```
2 changes: 2 additions & 0 deletions .changeset/smooth-pets-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
5 changes: 0 additions & 5 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,3 @@ actions:

integration:
- integration/**

# TODO @retheme: Remove
retheme:
- packages/clerk-js/src/ui.retheme/**
- packages/**/*.retheme.*
35 changes: 0 additions & 35 deletions .github/workflows/ui-retheme-build.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/ui-retheme-changes-reminder.yml

This file was deleted.

Loading

0 comments on commit 6ccbdff

Please sign in to comment.