DEV Community

Discussion on: Remaining Stateless - Using Redis for token blacklisting in Node JS

Collapse
 
nargonath profile image
Jonas Pauthier

Just reacting to: "the token blacklisted and local storage can then be cleared." at the end explanation. You ought not to use localStorage to store your JWT otherwise you open yourself to XSS attack. You'd better be using httpOnly, secure Cookies to store it: thinktecture.com/en/identity/sames....

Collapse
 
mr_cea profile image
Ogbonna Basil

Thanks Jonas. I addressed these concerns in the other articles in this series