T
TanStack5w ago
rival-black

client-side cookie helper?

haven't seen anywhere in docs or other discussions but why are the cookie helpers (getCookie, setCookie) only available on the server side? Why wasn't a client side helper exposed? I think digging through some of the code that it's using js-cookie lib which can definitely be used on the frontend. So real only option now is for me to reinstall that package as well in user land.
3 Replies
optimistic-gold
optimistic-gold4w ago
we could add this for sure, just a lot of thing to do and this is easily done in Userland
rival-black
rival-blackOP4w ago
totally understand
generous-apricot
generous-apricot4w ago
Accessing cookie from the client side is not recommended though.

Did you find this page helpful?