title: res.send token and then redirect
body: <p>I have an express app that upon calling a get request immediately returns a string token, then runs a python code. The python code after some time creates a json file that I need to send in another post request.</p>
  <p>This python code may be called by different users that's why i need to assign them a token a soon as the app is called.
  In the post request i'll also be modifying the json file and then sending it back</p>
  <p>I'm trying to do res.send the token and then res.redirect to the post request, but i know it's impossible. Is there any other way i could send the token or redirect to the post request?</p>
  <pre><code>app.get('/', (req, res) =&gt;{
       res.send(token())
       runPython((code)=&gt;{ 
  
       *takes around 10 sec*
  
         res.redirect('/post')}}
  
  app.post('/post', (req, res)=&gt;{
  
       *do stuff to file*
  
       res.sendFile()
  </code></pre>