I\'ve been trying to implement Discord OAuth in my Electron app, with a redirect to a localhost url. I wanted to avoid opening any new windows so I started by using history. Tha