Retrieving cookie data on a Response? Express object

I am just doing some API tests, and I am trying to verify that the cookie data was sent correctly, however I cannot find the documentation about receiving cookies from the response object, only from the request.

So, there is a quick way to do this, as you would with requests req.cookies["myCookie"], I know I can get the header and get the set-cookie, but its a bit of a mess trying to parse the cookie data from there manually.

+4
source share
1 answer

Could not find a solution, had to end the text match in the set-cookie header.

+3
source

All Articles