Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
main
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onmain
.Releases
@clerk/[email protected]
Patch Changes
7ecd6f6ab
]:@clerk/[email protected]
Patch Changes
23ebc89e9
,7ecd6f6ab
,9040549d6
]:@clerk/[email protected]
Patch Changes
Bug fix: Avoid triggering prepare verification twice. (Affects only dev mode) (#2459) by @panteliselef
Bug fix: fetch custom roles in OrganizationSwitcher (#2430) by @panteliselef
Updated dependencies [
7ecd6f6ab
,390a70732
]:@clerk/[email protected]
Patch Changes
23ebc89e9
,7ecd6f6ab
,9040549d6
]:@clerk/[email protected]
Patch Changes
7ecd6f6ab
]:[email protected]
Patch Changes
b8266a091
]:@clerk/[email protected]
Patch Changes
@clerk/[email protected]
Patch Changes
Introduce the new
clerkMiddleware
helper to allow for more flexibility in how Clerk is integrated into your Next.js middleware. Example usage can be found below, for more details, For more details, please see the clerkMiddleware documentation. (#2404) by @nikosdouvlisThe
clerkMiddleware
helper effectively replaces the olderauthMiddleware
helper, which is now considered deprecated and will be removed in the next major release.1. Protect a route that requires authentication
2. Protect a route that requires specific permissions
2. Manually redirect to sign-in URL using the redirectToSignIn helper
This commit also introduces the experimental
createRouteMatcher
helper, which can be used to create a route matcher that matches a route against the current request. This is useful for creating custom logic based on which routes you want to handle as protected or public.Updated dependencies [
7ecd6f6ab
]:@clerk/[email protected]
Patch Changes
7ecd6f6ab
]:@clerk/[email protected]
Patch Changes
7ecd6f6ab
]:@clerk/[email protected]
Patch Changes
Integrate handshake handling into
ClerkExpressWithAuth()
andClerkExpressRequireWith()
. If theauthenticateRequest()
returns a redirect or is in a handshake state, the middlewares will properly handle this and respond accordingly. (#2447) by @BRKalowUpdated dependencies [
7ecd6f6ab
]:@clerk/[email protected]
Patch Changes
@clerk/[email protected]
Patch Changes
9a87eced3
,7ecd6f6ab
]: