title: What is the correct way to pass token from external server to specific api route?
body: <p>Right now this is how I am doing it.</p>
  
  <p>I have an ajax call on client side which hits a route like "/gettoken"</p>
  
  <p>When the above is called, its passed to my node server where I do a router.get("/gettoken", function etc etc), and within this, I do a router.post("url of external server i want to get token from", function etc etc), then res.json(response.token).</p>
  
  <p>Then on client side in the call i made in 1) I get the response inside the .then(function(data)), i use that token received on client side to send another ajax call (yes an ajax call within an ajax call). The 2nd ajax call sends the toke to another route like "/sendtokenforapicall"</p>
  
  <p>on node server side again, I use router.get("/sendtokenforapicall") and within this I do a router.post("url for external api route") and pass the token along with it to get the relevant response back</p>
  
  <p>Is my flow correct? what is the correct way or better way of doing this?</p>