Open BigBallard opened 1 week ago
What is the name and value of the cookie you are trying to save?
auth
for name and the value is stringified json of a token value.> What is the name and value of the cookie you are trying to save?
Does it work with a simpler value instead of a stringified object?
No it does not. even changing the key too foo
and value to bar
does anything. still no saved cookie.
Well, you will have to keep simplifying until you figure out where the issue is. E.g. try directly setting a cookie without all the CookieStore
complexity. If that doesn't work, try setting a cookie directly with document.cookie = ...
to ensure there isn't an issue there.
In attempting to use this library, I am finding that my cookies are not being saved even when no errors are occurring. Frankly, I don't know if it's because I am in an http localhost environment. After attempting to save the cookie, I check the browser's dev tools -> Application -> Cookies -> http://localhost:3000, and I don't see any cookie.
I am using the current version of
es-cookie
.AuthStore