pillarjs / cookies

Signed and unsigned cookies based on Keygrip
MIT License
1.29k stars 152 forks source link

Get a cookie in 2023 #149

Closed msf-caesar closed 1 year ago

msf-caesar commented 1 year ago

Get a cookie in 2023

I propose to implement a new function to extract the value of a cookie in a simpler and more efficient way. This solution will simplify the process and significantly improve the way I get the cookie value.

image

dougwilson commented 1 year ago

Hello, and thank you for your issue. Unfortunately I think you may have opened this on the wrong repository. This is a Node.js module for the server, which does not have document.cookie like the web browser does. Using document.cookie does not work in Node.js and is out of scope for this module, which does not target web browsers. You'll need to use a module suited for the web browser.