This topic was originally posted by rodrigo1 on 8/4/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.
I am trying to make the login work within an Electron app but it fails to redirect the user after doing a successful google authentication.
I am not sure if I need to use some kind of redirectUrl to point back to the app such as appname://
I tried that but it will show an error that the URL is invalid.
Have you specified the web3AuthNetwork parameter during the Web3Auth Modal initialization ?
I’ll paste a snippet here for your reference on where should it go.
const web3auth = new Web3Auth({
clientId,
chainConfig: {
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: "0x1",
rpcTarget: "https://rpc.ankr.com/eth", // This is the public RPC we have added, please pass on your own endpoint while creating an app
},
web3AuthNetwork: "cyan", // Within the quotes is the network
});
Currently, we have a migration in progress from Mainnet to Sapphire so you might experience some temporary issues on this network until it is complete. Avoid using Mainnet until then.