Auth0 consent popup is not loading in electron window

Hello auth0 consent popup is not loading in electron window. it’s opening the new popup with empty window. Please help how we can resolve this

To resolve the issue of the Auth0 consent popup not loading in your Electron window, you can try the following steps:

  1. Enable nodeIntegration in Electron: In your Electron main process configuration, make sure that nodeIntegration is set to true. This allows your Electron window to access Node.js modules and APIs.

  2. Configure the webPreferences of the Electron window: When creating a new BrowserWindow in Electron, make sure to configure the webPreferences option with the following settings:

webPreferences: {
  nodeIntegration: true,
  contextIsolation: false,
  enableRemoteModule: true
}
  1. Set the sandbox option to "allow-popups": In the Auth0 configuration, set the sandbox option to "allow-popups". This allows the consent popup to open in a new Electron window instead of a separate browser window.

  2. Handle the consent popup manually: If the above steps don’t resolve the issue, you can handle the consent flow manually by creating a custom popup window in Electron. Instead of relying on the default consent popup, you can create a new BrowserWindow and load the consent URL directly.

By following these steps, you should be able to resolve the issue of the Auth0 consent popup not loading in your Electron window and ensure that it opens correctly.