Theo T3 Stack Tutorial - withClerkMiddleware soon deprecated
Hi, The tutorial uses withClerkMiddleware for the middleware.ts
The old one had public routes unless specified =>
but the new one are all private unless you specify the public routes right? or am I being confused?
using this, / is public, but when doing trpc calls like the post.getAll() it returns Unauthorized, how do I fix this?
thanks 🙂
1 Reply
this fixed the issue for the api issues
--
but its dumb
it doesnt matter if you have publicProcedure in TRPC or not, since you will have to also add that in Clerk, right?
--
Ah, people already said that
https://discord.com/channels/966627436387266600/1150832384707678288/1150868870312239205