by wraithm112 · 8y ago · 0 comments
Cookies: a simple session ID, a random number, stored in a cookie.
JWT: a JSON object stored in local storage that specifies authorization of some user that is authenticated by public key cryptography. JWTs can be configured in many ways, but this is what people usually mean because they want their sessions to be "stateless."
Way way more often than not, the "cookie" solution is better because it's far simpler. JWTs come with a tremendous amount of complexity with few benefits.
Sure it does, just put the JWT in the cookie ;)