cookies-next
cookies-next copied to clipboard
Getting, setting and removing cookies on both client and server with next.js
I am using the lib to create cookies with some key - for example "user" when i use the same key to delete the cookie nothing gets deleted.
Hello! I have fixed a bug regarding this issue #66. After this fix, the bug described in the mentioned issue shouldn't appear anymore.
they are only needed during build. having them in dependencies pollutes prod builds
Hi. If I set a cookie as `true` (boolean) and try to get it, it will go to the `decode` function as a boolean (not a string, I don't know...
I can't pass `req` as param, why is that? ```typescript export const someFunction = ( req: NonNullable['req'], ) => { return getCookie('key', { req }); // req ts error }...
This package is unfortunately not tested. Would be nice to unit test the source code
When creating the cookie without the httpOnly option, it is created correctly, however, when adding the httpOnly option, I do not create it and it does not return any error...
Hello, We've an issue with Samsung browsers not storing cookies, The below image is from our Sentry proving that simply the cookies are not being stored. This is mostly for...
I'm using the following code to set a cookie on the client-side: ``` import { getCookie, setCookie } from 'cookies-next'; // v4.0.0 setCookie('cookieName', 'cookieValue'); ``` I then need to read...