Public and Private procedures Not working with Clerk and Prisma
I have initialized a create-t3-app. I want to use clerk as my auth provider. I have ran into a problem midway when setting up the middleware and making changes to the prisma client. Now this is what the api calls are returning
11 Replies

This is where the error is arising from
in the middleware you need to make api routes public
trpc works by making requests to /api/trpc, and clerk instead of trpc response, responds with the login form
Like this? @Matvey
This still isnt working tho
Still getting the unexpected token error
strange, can you share the repo?
https://github.com/BurhanH12/Shop-Sphere.git
Clerk branch is the latest
GitHub
GitHub - BurhanH12/Shop-Sphere: Shop Sphere: Revolutionize your sho...
Shop Sphere: Revolutionize your shopping experience - BurhanH12/Shop-Sphere
I followed this documentation
Integrate Clerk into your Next.js Pages Router app with tRPC | Clerk
Learn how to integrate Clerk into your Next.js application using tRPC. tRPC can be used with Clerk, but requires a few tweaks from a traditional Clerk + Next.js setup.
@Matvey
Anyone got an idea?