TRPC context in RSC
I wanted to use trpc in React server components. I found the approach with the createCaller() method. But there is one problem, for the auth I have to set the headers (cookies), but in the app router the cookies() and the headers() function is only read-only. Is there any good solution for this problem?
0 Replies