[SOLVED] BUG: Authorization 'not you?' link redirects to homepage

The fix was:

var authWindow = new BrowserWindow({
	webPreferences: {
		nodeIntegration: false
	}
});