Check out example codes for "hwo to send token on redirection in passport". It will help you in understanding the concepts better.

Code Example 1

res.cookie('token', token, ...);
res.redirect(...);

Code Example 2

res.set('x-token', token);
res.redirect(...);

Code Example 3

res.redirect(`/some/url?token=${token}`);

Learn ReactJs, React Native from akashmittal.com