---
title: "Comment by Eliran Shem Tov on \"React, NodeJS and JWT Authentication - the right way!\" | Hashnode"
description: "Great post! Until now I used to save the access token in the local storage with expiration of 30 minutes or similar short term. On every full reload of the app"
url: "https://hashnode.com/posts/react-nodejs-and-jwt-authentication-the-right-way/5f4ff0aec48c6b29cd2ecd0a/comment/5f7b7beb9d088e603ef395b9"
---

[Discussion](https://hashnode.com/posts/react-nodejs-and-jwt-authentication-the-right-way/5f4ff0aec48c6b29cd2ecd0a)

Comment [React, NodeJS and JWT Authentication - the right way!](https://hashnode.com/posts/react-nodejs-and-jwt-authentication-the-right-way/5f4ff0aec48c6b29cd2ecd0a)

[Eliran Shem Tov](https://hashnode.com/@eliranshemtov)

[Oct 5, 2020](https://hashnode.com/posts/react-nodejs-and-jwt-authentication-the-right-way/5f4ff0aec48c6b29cd2ecd0a/comment/5f7b7beb9d088e603ef395b9)

Great post! Until now I used to save the access token in the local storage with expiration of 30 minutes or similar short term. On every full reload of the app or 5 min before access token's expiration - refresh using the refresh token. Is this in fact a bad practice? should I persist the access token in the session storage instead?

[Gal Malachi](https://hashnode.com/@galm)

[Oct 5, 2020](https://hashnode.com/posts/react-nodejs-and-jwt-authentication-the-right-way/5f4ff0aec48c6b29cd2ecd0a/comment/5f7b7beb9d088e603ef395b9#reply-5f7b81ef9d088e603ef395d9)

Hi [Eliran Shem Tov](https://hashnode.com/@eliranshemtov),

Thanks for the feedback! Yes, it’s considered as a bad practice. You shouldn’t store the token in local/session storage. In part 2 of the series I deal with the client side, and provide code examples, I believe you’ll find some useful information there!

[Eliran Shem Tov](https://hashnode.com/@eliranshemtov)

[Oct 6, 2020](https://hashnode.com/posts/react-nodejs-and-jwt-authentication-the-right-way/5f4ff0aec48c6b29cd2ecd0a/comment/5f7b7beb9d088e603ef395b9#reply-5f7c12979d088e603ef39ae9)

[Gal Malachi](https://hashnode.com/@gal1419) wow! what a great lesson... thanks!
