passport need to have res.redirect and res.user code example
Example 1: hwo to send token on redirection in passport
res.redirect(`/some/url?token=${token}`);
Example 2: hwo to send token on redirection in passport
res.cookie('token', token, ...);
res.redirect(...);