2

This library here stores your session data on the client https://www.npmjs.com/package/cookie-session. But doesn't that make it a JWT token (as opposed to a "session")?

Is the difference that cookie-session stores the data in cookies, versus JWT tokens are usually stored in localStorage?

Just confused about terminology here, thanks.

David McNamee
  • 403
  • 4
  • 10
  • *JWT tokens are usually stored in localStorage* is an assumption - what makes you say that? - there's a big difference between how using a session vs using JWT works - which part don't you understand? – Bravo Sep 13 '21 at 04:57

0 Answers0