Serialize Cookie as JWT #6274
lukasa1993
started this conversation in
Proposals
Replies: 2 comments 1 reply
-
sample implementation: https://github.com/remix-run/remix/compare/dev...lukasa1993:jwtcookie?expand=1 not suggesting as PR since it will break existing cookies but maybe under V2 ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I don't see the benefit this provides over signed cookies aside from sending encrypted data.
You can use JWTs for sessions right now by foregoing Remix's cookie and session helpers in favor of your own implementation. The helpers are not required to use sessions in Remix. |
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.
-
Currently remix already stores JSON in cookie with base64 and with secure keys it already signs so its half way there might as well go all the way to RFC spec of JWT in cookie we can use JOSE which supports all runtimes that remix does and has encryption as well and all other features and goodies that JWT spec comes with
Beta Was this translation helpful? Give feedback.
All reactions