|
|
|
|
|
by wraithm112
3031 days ago
|
|
Absolutely. Though, when people say cookies vs JWT, what they mean is: 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. |
|