title: How do I store JWT and send them with every request using react
body: <p>So happy right know because I got my basic registration/authentication system going on.</p>
  
  <p>so basically I got this :</p>
  
  <pre><code>app.post('/login', function(req,res) {
   Users.findOne({
  email: req.body.email
  }, function(err, user) {
  if(err) throw err;
  
  if(!user) {
    res.send({success: false, message: 'Authentication Failed, User not found.'});
  } else {
    //Check passwords
    checkingPassword(req.body.password, user.password, function(err, isMatch) {
      if(isMatch &amp;&amp; !err) {
        //Create token
        var token = jwt.sign(user,db.secret, {
          expiresIn: 1008000
        });
        res.json({success: true, jwtToken: "JWT "+token});
      } else {
        res.json({success: false, message: 'Authentication failed, wrong password buddy'});
  
         }
       });
      }
   });
  });
  </code></pre>
  
  <p>Then I secure my /admin routes and with POSTMAN whenever I send a get request with the jwt in the header everything works perfectly.</p>
  
  <p>Now here is the tricky part, basically When i'm going to login if this a sucess then redirect me to the admin page, and everytime I try to access admin/* routes I want to send to the server my jwToken but the problem is, how do I achieve that ? I'm not using redux/flux, just using react/react-router.</p>
  
  <p>I don't know how the mechanic works.</p>
  
  <p>Thanks guys</p>