title: Authenticate client routing
body: <p>I develop an application with React, Node.js and JSON Web Token.
  I want to secure client routes.
  I don't want to give access to client routes if not authenticated, also in case the user changes the client by himself.</p>
  
  <p>For example: </p>
  
  <p>Most posts I saw used something like this:</p>
  
  <pre><code> const PrivateRoute = ({ component: Component, ...rest }) =&gt; (
    &lt;Route {...rest} render={(props) =&gt; (
      Auth.isAuthenticated === true
        ? &lt;Component {...props} /&gt;
        : &lt;Redirect to='/login' /&gt;
    )} /&gt;
  )
  </code></pre>
  
  <p>It's clear that <code>Auth.isAuthenticated</code> can be changed by any client by doing: 
  <code>Auth.isAuthenticated = true</code>
  or any other syntax.</p>
  
  <p>How can I solve that?</p>