How to pass through authentication header when using createTRPCProxyClient and RSC?
Hi - we are having a great time with tRPC, and have it working well in a Next14 + React Server Components environment.
However, we're seeing that the headers aren't being passed through when a trpc query call is made from within a RSC component via await trcp.profile.me.query()
I looked into trying to pass through the headers and there's no way to access the actual headers from the current request, only to add new ones via headers() function.
What is the preferred way to pass through auth headers in a client => RSC => trpc.query => server environment?
However, we're seeing that the headers aren't being passed through when a trpc query call is made from within a RSC component via await trcp.profile.me.query()
I looked into trying to pass through the headers and there's no way to access the actual headers from the current request, only to add new ones via headers() function.
What is the preferred way to pass through auth headers in a client => RSC => trpc.query => server environment?