title: node express react oauth pass access token after athorization in callback with react client app
body: <p>I have a node server that authenticates with a third party (like stack overflow does) using oauth.  When the third party hits my callback and I authorize the request and get the access token and other info, I want to then pass this info to a react app I made, so then the react app can make REST calls to using the access token straight from the provider.</p>
  
  <p>I am new to react and node, but am able to make a node server that can get the access and refresh token info.  I am new to 'serving' and serving a react app.  I have been serving using </p>
  
  <pre><code>app.use('/client', express.static(__dirname + '/client'));
  </code></pre>
  
  <p>to serve react apps, and this works great to a limited extent.  The situation I am currently in exceeds the extent and I want to learn how to send the oauth info along with my react app back after authorizing in the callback.  The flow I am using authorizes the request in the callback and then does a redirect back to the /client route to render the app, which fails to pass any oauth info to the client.  Is there any way to set the header before that redirect to have the oauth info, and then some how get that oauth info in the react app?</p>
  
  <p>I am posting here to get some advice on some avenues and resources I should read up on, and maybe some suggestions for my current situation.  I am eager to learn more on express and am currently looking to set the header with the info I need and then serving the react app as a file or something, I am not sure yet.  </p>
  
  <p>Thanks to all in advanced!</p>