Clerk Core 2 Beta Feedback Thread #2900
Replies: 12 comments 37 replies
-
Great work! The migration CLI was very helpful. I noted, though, that the type |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Loving the beta!🙏 We are daring, and use it in production in an app currently. When can we expect the official release? |
Beta Was this translation helpful? Give feedback.
-
The Beta version of Clerk is very easy to use for me. I found the following type importing error in
|
Beta Was this translation helpful? Give feedback.
-
I posted an issue here about a problem with the Reproduction: git clone https://github.com/itsMapleLeaf/clerk-beta-remix-vercel-bug
cd clerk-beta-remix-vercel-bug
npx vercel deploy The app crashes at runtime with the following error:
The reproduction here is specifically in the case of Vercel + Remix, but I think the root of the issue is the Here's what happens:
If possible, the code should change to not rely on a class whose identity is locked at definition time. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
It appears that the types SignedInAuthObject and SignedOutAuthObject are no longer being exported. These types are referenced in the documentation for TRPCContext available here: https://clerk.com/docs/references/nextjs/trpc. |
Beta Was this translation helpful? Give feedback.
-
Hey, The Clerk Core 2 Beta 41 so far seems very stable and performant. Great job team, you've done an awesome job on removing technical debt and improving performance overall! I'm very satisfied with Clerk. :) One "dumb" question: I've looked at the beta docs and there's no documentation on how to chain multiple middlewares together. Only on how to add one middleware (see: https://beta.clerk.com/docs/references/nextjs/clerk-middleware#combining-middleware) My problem is simple: I have a Content-Security Policy (CSP) middleware and an I18N middleware. I need them both to be online. How can I chain the middlewares? Example code: // file: middleware.ts
import {clerkMiddleware as authMiddleware, createRouteMatcher} from "@clerk/nextjs/server";
...
export default authMiddleware((auth, req) => {
if (isProtectedRoute(req)) {
auth().protect();
}
return cspMiddleware(req);
// ^--- here I'm using my csp middleware, but I want to use both this and my i18n middleware.
}); I'm using Next.JS btw. |
Beta Was this translation helpful? Give feedback.
-
Hi, I've added the middleware.ts file into the src folder as taken from the blog article:
The auth seems to work as expected but I'm getting the following error in the console: Any ideas as to why it's working but still giving this error. note: This is a t3 app |
Beta Was this translation helpful? Give feedback.
-
We're happy to announce that Core 2 is now Generally Available (GA) 🎉 Thanks for giving it a try - if you have any further feedback, feel free to leave it here or open an issue with a reproduction. Thanks! |
Beta Was this translation helpful? Give feedback.
-
More or less same problem as @itsMapleLeaf posted recently, I get the same problem with a NestJS application. error TypeError: Failed to parse URL from /protected
at new Request (node:internal/deps/undici/undici:6110:19)
at new ClerkRequest (/home/clerk5-nestjs-bug/node_modules/@clerk/backend/src/tokens/clerkRequest.ts:24:5)
... 6 lines matching cause stack trace ...
at canActivateFn (/home/clerk5-nestjs-bug/node_modules/@nestjs/core/router/router-execution-context.js:135:59)
at /home/clerk5-nestjs-bug/node_modules/@nestjs/core/router/router-execution-context.js:42:37 {
[cause]: TypeError: Invalid URL
at new URL (node:internal/url:796:36)
at new Request (node:internal/deps/undici/undici:6108:25)
at new ClerkRequest (/home/clerk5-nestjs-bug/node_modules/@clerk/backend/src/tokens/clerkRequest.ts:24:5)
at createClerkRequest (/home/clerk5-nestjs-bug/node_modules/@clerk/backend/src/tokens/clerkRequest.ts:72:54)
at authenticateRequest (/home/clerk5-nestjs-bug/node_modules/@clerk/backend/src/tokens/request.ts:66:57)
at Object.authenticateRequest2 [as authenticateRequest] (/home/clerk5-nestjs-bug/node_modules/@clerk/backend/src/tokens/factory.ts:51:12)
at AuthService.authenticateRequest (/home/clerk5-nestjs-bug/src/auth/auth.service.ts:26:32)
at AuthGuard.canActivate (/home/clerk5-nestjs-bug/src/auth/auth.guard.ts:32:52)
at GuardsConsumer.tryActivate (/home/clerk5-nestjs-bug/node_modules/@nestjs/core/guards/guards-consumer.js:15:34)
at canActivateFn (/home/clerk5-nestjs-bug/node_modules/@nestjs/core/router/router-execution-context.js:135:59) {
code: 'ERR_INVALID_URL',
input: '/protected'
}
} The crash and reproduction is much the same, yet not with Remix or Vercel, but @itsMapleLeaf already posted some good thoughts on the problem. NestJS runs on express and there's an additional problem with @nikosdouvlis You fixed it last time, can you take a look at this as well? |
Beta Was this translation helpful? Give feedback.
-
Hi, I am getting this error, even though I am using catch-all route. Do you have some idea why it happens? |
Beta Was this translation helpful? Give feedback.
-
On February 29th, we released the beta version of Clerk Core 2, a major update to all of our SDKs. If you have had the chance to try it out, please feel free to leave feedback here. Thank you so much!
Edit on April 19th: We've released Core 2 as GA. Learn more!
Beta Was this translation helpful? Give feedback.
All reactions