maticzav/nookies

How to access updated cookies in the Middleware of NextJs

MarkBuoy opened this issue · 2 comments

I am setting cookies on the Client side with the package "nookies". Right after that, I redirect the user to another page and trigger the middleware that retrieves the current cookies.
The cookies don't contains the updated cookies, is there something I do wrong in my flow?

Thank you in advance for your help!

@MarkBuoy Are the cookies HttpOnly ? Can you post an example of how you're updating the cookies.
Otherwise I believe this package uses the cookie library if you need examples but probably you've already tried most things.

@MarkBuoy Did you get the fix for your use-case as I am facing the same issue from last 2 days. 😔