paint-brush
Secure Sessions in JavaScript: Forking Express-Session to Improve Securityby@0x0ece
1,239 reads
1,239 reads

Secure Sessions in JavaScript: Forking Express-Session to Improve Security

by Emanuele Cesena4mJune 13th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

This article focuses on sessions and how we forked express-session to make it more secure. Instead of building an independent session system, we decided to make a drop-in replacement for Express. We use public-key cryptography (ES256) so that you can architect your system with a single "session manager" service that issues tokens and accesses the private key, while you can have as many verifiers as you need with no access to secrets. Our solution uses JWT as session tokens, instead of the hash value of the token in the data store.

Company Mentioned

Mention Thumbnail
featured image - Secure Sessions in JavaScript: Forking Express-Session to Improve Security
Emanuele Cesena HackerNoon profile picture
Emanuele Cesena

Emanuele Cesena

@0x0ece

Making the open source @SoloKeysSec and the @Everdragons2 NFT. Former security at Pinterest, now at Jump.

About @0x0ece
LEARN MORE ABOUT @0X0ECE'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Emanuele Cesena HackerNoon profile picture
Emanuele Cesena@0x0ece
Making the open source @SoloKeysSec and the @Everdragons2 NFT. Former security at Pinterest, now at Jump.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite