aspirante
aspirante
TTCTheo's Typesafe Cult
Created by aspirante on 5/8/2024 in #questions
How to set up Clerk with tRPC in app router?
I see, I naively thought that the tRPC context already included all the functionalities of the <ClerkProvider,/> effectively being just a bigger, unified provider for all communications between server and client I would implement in the app. In that way, the ClerkProvider component would just be redundant. But now I see that is not the way the tRPC is working together with Clerk, thank you very much!
9 replies
TTCTheo's Typesafe Cult
Created by aspirante on 5/8/2024 in #questions
How to set up Clerk with tRPC in app router?
Since Im using tRPC in this way, do I still need to wrap the app layout with the ClerkProvider?
9 replies
TTCTheo's Typesafe Cult
Created by aspirante on 5/8/2024 in #questions
How to set up Clerk with tRPC in app router?
The one you get with this import import { auth } from "@clerk/nextjs/server" in server/trpc
9 replies
TTCTheo's Typesafe Cult
Created by aspirante on 5/8/2024 in #questions
How to set up Clerk with tRPC in app router?
Juraj98 thank you very much for the response. Its still confusing for me how tRPC works and why we have so much files to deal with it. But you helped me a lot! 😛 Its seems like magic, so this auth object is global?
9 replies