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:
nodeIntegrationin Electron: In your Electron main process configuration, make sure that
nodeIntegrationis set to
true. This allows your Electron window to access Node.js modules and APIs.
webPreferencesof the Electron window: When creating a new BrowserWindow in Electron, make sure to configure the
webPreferencesoption with the following settings:
"allow-popups": In the Auth0 configuration, set the
"allow-popups". This allows the consent popup to open in a new Electron window instead of a separate browser window.
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.