tRPCttRPC
Powered by
AHeissenbergerA
tRPC•3y ago•
2 replies
AHeissenberger

AWS Lambda / How to set Cookies inside Procedures

How can I set and remove cookies similar to ctx.res.cookie(..) with Express when using the aws lambda adapter.

My configuration is:
* node 18
* tRPC 10
* aws lambda adapter / APIGatewayProxyEventV2

I do not need CORS - I only need to write/delete Cookies

I tried
awsLambdaRequestHandler
awsLambdaRequestHandler
but was not able to access anything I added to context in my procedure to be visible there.

Thank you for the support and this great tool!
Andreas
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

How to set cookies in trpc response?
DerockDDerock / ❓-help
3y ago
trpc + AWS Lambda (through cdk)
ferdyFferdy / ❓-help
3y ago