title: Handle Google callback response on ReactJS
body: <p>I have a backend Node Express API server which is handling google auth2 through passportjs -> /auth/google to initiate google oauth, and the callback is handled by /auth/google/callback.</p>
  
  <p>On the Google callback route, Node is returning a JWT (res.token).</p>
  
  <p>My question is how do I capture this token on the frontend. On the frontend, the workflow is simply: I have hyperlink to /auth/google. When the user clicks it and gives Google authorisation, he is sent back to the /auth/google/callback route. So, now, how do I capture the res.token header and how do I redirect him to, say, /user/dashboard?r</p>