The code is above and error is below.
I checked two things already.
did whitelist my domain
Client ID belongs to the network
I hope your reply.
There seems to be some bug in the code. Please contact support to fix this.
could not validate redirect, please whitelist your domain: https://ryukyuverce.lvh.me for provided clientId BD5ZasYBY3FFSWwnbaZ2ybogPyQvDT7854E1WxKIzGQyTvw6zp7eUbfIFtdVi2LQG_2RZOPNFV9LOY1YCuCk73A at https://dashboard.web3auth.io. Also, this project is on mainnet network. Please ensure the the used Client ID belongs to this network.
Which network are you on Testnet, Cyan or Mainnet? If your client id targets say cyan network then you should use Cyan as the network in your code as well.
@fc.kikkawa 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: "0xA",
rpcTarget: "https://rpc.ankr.com/eth", // This is the public RPC we have added, please pass on your own endpoint while creating an app
},
// replace cyan with whichever network you use
web3AuthNetwork: "cyan",
});