Replies: 1 comment 1 reply
-
Remix cookies are signed and encoded. If you try to parse a text cookie, it will fail because it's not in a valid format. Definitely use another cookie lib if you need control over the value. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any advantage to using Remix's Cookie API when working with plain text cookies. My understanding is the
.parse()
function decodes the cookie which it expects has been set with the.serialize()
function.If the cookie is plain, nothing will be returned. Example:
Should I instead just use
cookie.parse()
from the cookie lib?Beta Was this translation helpful? Give feedback.
All reactions