Forward client headers with createTRPCProxyClient & Server-Side Helpers
With
createTRPCNext
i had the option to tap into the context.req
object nextjs passed in, but I cant achieve the same with createTRPCProxyClient
.
For example below code fails authentication, cause cookies arent forwarded.
4 Replies
My helpers. No access to the context here. The
headers
function has some opList
array, with query keys and an empty context
Is this something not implemented ?how use ?
my console.log('user ===>', user) /// result : undefined how fix
@neobean
did u find a solution for this?
I'm sorry i did not
at that time I didn't need it at very much, so i just used trpc client-side
I'll retry this in the coming days.