Skip to content

How to Access Response Object in express-zod-api Handler to Set Cookies #1754

Answered by RobinTail
yuuri111 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @yuuri111

Here are existing topics for you on that matter:

In short:

  • The request is only available for middlewares and Result Handlers.
  • You can either:
    • set the cookie there,
    • or expose "cookie setter" or whole request from a custom middleware, to access it from options in endpoint's handler.

Please let me know if more information required.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RobinTail
Comment options

@yuuri111
Comment options

Answer selected by RobinTail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants