1

I have a chrome extension that takes over the users new tab. We are using google authentication through our own server. My problem is that I cannot figure out how to "res.redirect" back to the new tab once the user has logged in or out. I need something along the lines of app.get( '/auth/google/callback', passport.authenticate('google'), (req, res) => { res.redirect(chrome://newtab) }); Does anyone have any experience with this or any knowledge on how to address it? Thanks in advance!

Ehutch
  • 126
  • 4
  • Might want to have a look at this.https://stackoverflow.com/questions/8500326/how-to-use-nodejs-to-open-default-browser-and-navigate-to-a-specific-url – Daksh Jun 24 '18 at 19:07
  • You have to do this on the client; have the extension close the current, then open a new tab. –  Jun 24 '18 at 19:11

0 Answers0