ItsWendellI
tRPC4y ago
1 reply
ItsWendell

Sharing middleware between TRPC servers

We currently have microservices REST API's on Cloudflare Workers and I'm thinking about moving this to TRPC Microservices.

We currently have a middleware in a shared package that we can reuse between microservices for authentication, how do I do this within TRPC?

How do I define a MiddlewareFunction that can be reused between multiple TRPC instances?
Was this page helpful?