unjs / h3

⚡️ Minimal H(TTP) framework built for high performance and portability

Home Page:https://h3.unjs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cookie formatting

paulvonber opened this issue · comments

Describe the change

When using example from documentation cookie somehow get wrongly formatted:

image

But if I add maxAge to cookie object then everything is ok, so not sure if documentation is wrong or it's a bug.

URLs

https://h3.unjs.io/examples/handle-session#options

Additional information

  • Would you be willing to help?

Would you provide a minimal reproduction so that people can check both of wrongly and well formatted cookie, like, by commenting out a line of code?