How to Make JWT More Secure in NestJS

Recently, I’ve been thinking about how to make some of my crucial endpoints more secure when using locally stored JWT. It may not be the best practice for security (because of the possibility of XSS attacks), but this was a requirement not set by me. I had to adapt. So in order to make this more secure, I’ve found a solution, that, hopefully, will help you as well. ...

October 28, 2023 · 4 min