This topic was originally posted by flavius.burca on 9/12/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.
Getting the error below, even though the URL is whitelisted and client id is correct:
There seems to be some bug in the code. Please contact support to fix this.
could not validate redirect, please whitelist your…
Have you specified the web3AuthNetwork parameter during the Web3Auth Modal initialization ?
I’ll paste a sample snippet here for your reference on where should it go. For your case, please mention "cyan" as the parameter.
const web3auth = new Web3AuthNoModal({
clientId: "", // Get your Client ID from Web3Auth Dashboard
chainConfig: {
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: "0x1",
displayName: "Ethereum Mainnet",
blockExplorer: "https://etherscan.io",
ticker: "ETH",
tickerName: "Ethereum",
rpcTarget: "https://rpc.ankr.com/eth",
},
web3AuthNetwork: "cyan",
});
Did you also check the status of the Verifier to be Live?