We have a Client ID which is being used to implement openlogin adapter on webapplication (react) and using electron JS we want to implement the same for a desktop application as well.
but once we create the electron build web3auth modal throws whitelist error.
The screenshot does not show the environment the project has been setup. Also, please answer if you are in Growth plan or higher or are you on the base plan ?
@arpit Please confirm the environment the project has been setup in. Also, please answer if you are on Growth plan or higher or are you on the base plan ?
I understand but we are already using the base plan for production on our live site Files Dapp and its working quite good there.
The issue only comes on electron build version. Also initially it used to work (5-6 months back)
when we were in initial development of our electron version.
@arpit 5-6 months there were certain changes made by our team in terms of gating certain features restricted only to Growth plan or higher. Please read through our recent pricing details here
Which environment is this Dapp setup in? Is this on Mainnet?
@arpit Can you share your Github repo or entire implementation code for our Dev team to check ? If you do not want to share it publicly, You can navigate to the left hand side Menu . Scroll down to find Messages > Inbox > I have sent you a DM .
Can you also answer if you have added a payment method to your Dashboard account ?
Currently, we don’t have a specific example tailored for Electron JS in our resources. However, I recommend trying out the configuration designed for React Native along with the necessary whitelisting procedures. If you’re able to adapt these configurations successfully for Electron JS, that would be fantastic. Please feel free to share your progress or any challenges you encounter. We’re here to support you along the way!
Hey @maharshi , As per your suggestion we tried to incorporate the react-native sdk in place of web nomodal sdk for our electron app , but after multiple efforts these seems to be few underlying code which is not compatible with the react code (render layer) for our electron application.
The orignal react web application is already using web3auth in productiion (lighthouse.storage)
Now the build of this react web application when ran inside electron environment throws the whitelist error. So on further investigation i also found outside the electron environment.
when react app is ran in dev mode (i.e npm run start / npm run dev ) , it runs on browser with window. origin as localhost that can be whitelisted on web3auth dashboard.
but when the same code is build (npm run build / vite build) , the generated index.html when run has window.origin as file:// , which even when added to whitelist table is throwing whitelist error.