Please provide the following details too when asking for help in this category:
-
SDK Version: 5.0.1
-
Platform: Vue
-
Browser Console Screenshots:
-
Related to Custom Authentication?
No
Please provide the Web3Auth initialization and login code snippet below:
- initialization
const web3auth = new Web3AuthNoModal({
clientId: config.web3AuthClientId,
chainConfig: {
"chainNamespace": "eip155",
"chainId": "0x13881",
"rpcTarget": "https://rpc.ankr.com/polygon_mumbai",
"displayName": "Polygon Mumbai Testnet",
"blockExplorer": "https://mumbai.polygonscan.com",
"ticker": "MATIC",
"tickerName": "Polygon",
"decimals": 18
},
sessionTime: 86400 * 7,
});
const metamaskAdapter = new MetamaskAdapter();
web3auth.configureAdapter(metamaskAdapter);
await web3auth.init();
- login
await web3auth.connectTo(WALLET_ADAPTERS.METAMASK);