tomheaton
express-session for tRPC
you can send the auth cookie or similar with the request in the headers
(https://trpc.io/docs/client/setup)
then define a middleware that uses the auth to find a matching session (in your redis etc.)
(https://trpc.io/docs/server/middlewares)
9 replies