Is it safe to store a JWT in localStorage with ReactJS?

I’m currently building a single page application using ReactJS.

I read that one of the reasons for not using localStorage is because of XSS vulnerabilities.

Since React escapes all user input, would it now be safe to use localStorage?

10 Answers
10

Leave a Comment