and this looks like the right place, except that I don't have access to the responseresponse, which would be needed to clear a cookie. Is there a better place to do this, or is there a reason there is no access to the resres?
Whenever an error occurs in a procedure, tRPC responds to the client with an object that includes an "error" property. This property contains all the information that you need to handle the error in the client.
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
t
tRPC
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.