# Web3Auth WalletConnect v2 Adapter

[![npm version](https://img.shields.io/npm/v/@biuauth/wallet-connect-v2-adapter?label=%22%22)](https://www.npmjs.com/package/@biuauth/wallet-connect-v2-adapter/v/latest)
[![minzip](https://img.shields.io/bundlephobia/minzip/@biuauth/wallet-connect-v2-adapter?label=%22%22)](https://bundlephobia.com/result?p=@biuauth/wallet-connect-v2-adapter@latest)

> Web3Auth is where passwordless auth meets non-custodial key infrastructure for Web3 apps and wallets. By aggregating OAuth (Google, Twitter, Discord) logins, different wallets and innovative Multi Party Computation (MPC) - Web3Auth provides a seamless login experience to every user on your application.

Wallet connect v2 adapter allows your Web3Auth Instance to connect with wallet connect v2. 
## 📖 Documentation

Read more about the Web3Auth WalletConnect v2 Adapter in the [official Web3Auth Documentation](https://web3auth.io/docs/sdk/web/adapters/wallet-connect-v2).

## 💡 Features
- Plug and Play, OAuth based Web3 Authentication Service
- Fully decentralized, non-custodial key infrastructure
- End to end Whitelabelable solution
- Threshold Cryptography based Key Reconstruction
- Multi Factor Authentication Setup & Recovery (Includes password, backup phrase, device factor editing/deletion etc)
- Support for WebAuthn & Passwordless Login
- Support for connecting to multiple wallets
- DApp Active Session Management

...and a lot more

## 📄 Basic Details

- Adapter Name: `wallet-connect-v2`

- Package Name: [`@biuauth/wallet-connect-v2-adapter`](https://web3auth.io/docs/sdk/web/adapters/wallet-connect-v2)

- authMode: `DAPP`

- chainNamespace: `EIP155`

- Default: `YES`

## 🔗 Installation

```shell
npm install --save @biuauth/wallet-connect-v2-adapter
```

## 🩹 Example


```ts
import { WalletConnectv2Adapter } from "@biuauth/wallet-connect-v2-adapter";

  const wc2Adapter = new WalletConnectV2Adapter({
      adapterSettings: {
        qrcodeModal: QRCodeModal, // QRCodeModal is not required if you are using web3auth modal
        walletConnectInitOptions: {
          projectId: "YOUR WALLET CONNECT PROJECT ID",
        }
        },
      chainConfig: currentChainConfig,
  });


web3auth.configureAdapter(wc2Adapter);
```

Checkout the examples for your preferred blockchain and platform in our [examples repository](https://github.com/Web3Auth/examples/)

## 🌐 Demo

Checkout the [Web3Auth Demo](https://demo-app.web3auth.io/) to see how Web3Auth can be used in your application.

## 💬 Troubleshooting and Discussions

- Have a look at our [GitHub Discussions](https://github.com/Web3Auth/Web3Auth/discussions?discussions_q=sort%3Atop) to see if anyone has any questions or issues you might be having.
- Checkout our [Troubleshooting Documentation Page](https://web3auth.io/docs/troubleshooting) to know the common issues and solutions
- Join our [Discord](https://discord.gg/web3auth) to join our community and get private integration support or help with your integration.
