Hi,
I have basic boilerplate usage of CoinbaseAdapter:
import { CoinbaseAdapter } from "@web3auth/coinbase-adapter";
// ...
const chainConfig = {
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: "0x2105",
displayName: "Base Mainnet",
rpcTarget: "https://mainnet.base.org",
blockExplorerUrl: "https://base.blockscout.com",
ticker: "ETH",
tickerName: "Ethereum",
logo: "https://github.com/base-org/brand-kit/raw/main/logo/in-product/Base_Network_Logo.svg",
};
const privateKeyProvider = new EthereumPrivateKeyProvider({
config: { chainConfig },
});
const web3AuthOptions = {
this.clientId,
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
privateKeyProvider,
};
const web3auth = new Web3AuthNoModal(web3AuthOptions);
const coinbaseAdapter = new CoinbaseAdapter({
clientId: this.coinbaseProjectId,
sessionTime: 86400,
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
});
web3auth.configureAdapter(coinbaseAdapter);
await web3auth.init();
await web3auth.connectTo(WALLET_ADAPTERS.COINBASE);
await web3auth.authenticateUser(); // error here!
What happens is that it opens the popup for Coinbase (btw I need to turn off my Adblocker to see this popup ). I can press Sign, Coinbase does signing, popup closes and then error in log:
Failed to authenticate user, ,message verification failed {type: 'Signature do not match address of the message.'}
Error: Failed to authenticate user, ,message verification failed
at verifySignedChallenge (baseControllers.esm.js:806:11)
at async CoinbaseAdapter.authenticateUser (baseEvmAdapter.esm.js:42:13)