tRPCttRPC
Powered by
yxaepnmY
tRPC•3y ago•
4 replies
yxaepnm

Set server response headers from TRPC standalone adapter

Hi

I am trying to implement my own authentication in Trpc. For this I need to create a session on the backend and return appropriate headers like set cookie for
session-token
session-token
and
csrf-token
csrf-token
.
How can I set these headers from within a mutation when using the standalone adapter.

Could find anything here or in the docs. Thank you 🙏
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

tRPC standalone server in monorepo
HuzefHHuzef / ❓-help
3y ago
How to close a Standalone adapter server?
AerysAAerys / ❓-help
3y ago