title: Storing JWT token on an universal React application
body: <p>I have an universal React application using Redux, React-routerV4, MySQL and Sequelize. I am trying to protect some routes, and I'm using Passport for that, like in this tutorial: <a href="https://hptechblogs.com/using-json-web-token-react/" rel="nofollow noreferrer">https://hptechblogs.com/using-json-web-token-react/</a></p>
  
  <p>Usually with JWT storing on web browser is recommended, because you don't have to make request to the DB everytime you load a route. But in the case of an Application with SSR this is not useful, because the components loaded by the server can't access <code>LocalStorage</code> or <code>SessionStorage</code>.</p>
  
  <p>I am thinking if storing the token in a cookie is better in the case of universal applications… Any idea?</p>
  
  <p>Thanks!</p>