Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

Stop using JWTs as a session mechanism

⁨8⁩ ⁨likes⁩

Submitted ⁨⁨3⁩ ⁨days⁩ ago⁩ by ⁨cm0002@mander.xyz⁩ to ⁨cybersecurity@infosec.pub⁩

https://gist.github.com/samsch/0d1f3d3b4745d778f78b230cf6061452

source

Comments

Sort:hotnewtop
  • SamuelEllis@lemmy.world ⁨1⁩ ⁨day⁩ ago

    Shifting away from JWTs for sessions is often a response to the risk of replay attacks when secrets are compromised, but it’s worth noting that stateless designs remain valuable for horizontal scaling and low-latency requirements. The real trade-off lies in balancing the inherent security benefits of tokens against the operational complexity of managing centralized session stores.

    source