Hello,
I tried to whitelist my domain on the dashboard but still got an error message in my webapp.
OpenLogin - RPC Error: could not validate redirect, please whitelist your domain: https://gymwallet.co for provided clientId ... at https://dashboard.web3auth.io.
Also, this project is on mainnet network. Please ensure the the used Client ID belongs to this network.
my configuration looks like this:
const web3auth = new Web3Auth({
web3AuthNetwork: 'testnet',
clientId: clientId,
chainConfig: {
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: `0x${network.toString(16)}`,
rpcTarget: url,
},
uiConfig: {
appLogo: '/community/images/gym-wallet-white.svg',
defaultLanguage: 'en',
theme: 'dark',
loginMethodsOrder: [
'google',
'apple',
'facebook',
'twitter',
'github',
'email_passwordless',
],
},
storageKey: 'local',
authMode: 'DAPP',
});
I'm using infura RPC and want to try it out on testnet first.
Like this with localhost, all works fine, but not on my domain.
Help would be appreciated.
Originally posted by: sebastian-baier
Check the discussion at: https://github.com/orgs/Web3Auth/discussions/1143