- SDK Version: 6.1.3
- Browser Console Screenshots:
const web3Auth = new Web3AuthNoModal({
clientId: Web3AuthClientId,
chainConfig: {
chainNamespace: "eip155",
chainId: chain.chainId.toString(16),
rpcTarget: chain.envParam.privateRpcUrl || "",
displayName: chain.name,
blockExplorer: chain.blockExplorerUrl,
ticker: chain.nativeCurrency.symbol,
tickerName: chain.nativeCurrency.name,
decimals: chain.nativeCurrency.decimals,
},
});
const openloginAdapter = new OpenloginAdapter({
adapterSettings: {
uxMode: "redirect",
loginConfig: {
google: {
verifier: GoogleOAuthVerifier,
typeOfLogin: "google",
clientId: GoogleOAuthClientId,
},
},
},
loginSettings: {
loginProvider: "google",
redirectUrl: 'http://localhost:3000'
},
});
web3Auth.configureAdapter(openloginAdapter);
await web3Auth.init();
await web3Auth.connectTo(WALLET_ADAPTERS.OPENLOGIN, {
loginProvider: "google",
});
Redirect to /start after connect. Should I handle the /start link or I can customise that?