t
tRPC
t
tRPC
How would i achieve middleware authentication based on a project id?
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
N
Nick
•
3/24/23, 1:26 PM
You can put the middleware after the input type and it can access that
N
Nick
•
3/24/23, 1:27 PM
So if you have a consistent pattern for passing the ID you can just have a middleware which checks it