T
tRPC

passing user input state variable to all api calls

passing user input state variable to all api calls

SSkyGuy10/17/2023
I have a multi organization app and need a way of passing the current organizationId on all requests. Auth to this organization needs to be verified in a procedure. My presumption is that is best set as a header i.e. x-selected-organization is there an alternative way to achieve this possibly given a custom link?

Looking for more? Join the community!

T
tRPC

passing user input state variable to all api calls

Join Server