Wallet connect v2 adapter allows you to log in with wallet connect v2. You can read more aboutWalletconnect here.
You can get walletConnectV2 settings by calling the getWalletConnectV2Settings()
function with itsrequired arguments.
import { WalletConnectModal } from "@walletconnect/modal";
import {
getWalletConnectV2Settings,
WalletConnectV2Adapter,
} from "@web3auth/wallet-connect-v2-adapter";
const defaultWcSettings = await getWalletConnectV2Settings(
"eip155",
["1"],
"04309ed1007e77d1f119b85205bb779d",
);
const walletConnectModal = new WalletConnectModal({
projectId: "04309ed1007e77d1f119b85205bb779d",
});
const walletConnectV2Adapter = new WalletConnectV2Adapter({
adapterSettings: { qrcodeModal: walletConnectModal, ...defaultWcSettings.adapterSettings },
loginSettings: { ...defaultWcSettings.loginSettings },
});
web3auth.configureAdapter(walletConnectV2Adapter);