tRPCttRPC
Powered by
SkyGuyS
tRPC•3y ago
SkyGuy

passing user input state variable to all api calls

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
x-selected-organization
is there an alternative way to achieve this possibly given a custom link?
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Passing input as a prop
WiznetWWiznet / ❓-help
2y ago
AccessToken for API calls
MugetsuMMugetsu / ❓-help
4y ago
Caching API calls (HTTP response)
Answer OverflowAAnswer Overflow / ❓-help
2y ago