AHeissenbergerA
tRPC3y 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 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
Was this page helpful?