You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've hacked together a TRPC middleware for my v1 integration, but it seems to be broken with v2. Still debugging the issue, but would love to have an officially managed middleware I can use on specific TRPC endpoints.
The text was updated successfully, but these errors were encountered:
I took inspiration from the nextjs handler and just made it more TRPC.
The main thing is the body, TRPC expect the input of a mutation using POST to be inside a json attribute, so just shove the rawBody coming from the middleware options to inside it and it works.
I've hacked together a TRPC middleware for my v1 integration, but it seems to be broken with v2. Still debugging the issue, but would love to have an officially managed middleware I can use on specific TRPC endpoints.
The text was updated successfully, but these errors were encountered: