[Archive] Whitelisted URL does not work

:classical_building: Archived Content from Web3Auth Community

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…

Please share the console logs from the error page

web3auth1
web3auth11075×105 25.6 KB

web3auth3
web3auth31591×195 21.4 KB

tried even without a port and does not work. Created a new project with a single url and does not work…

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?