Skip to main content

Before the Start

You can start this tutorial if you already have a NextJS dapp with MetaMask functionality.

Configuring the WalletConnect Connector

  1. Open thepages/signin.jsx file and add WalletConnectConnector as a connector to connectAsync(). You should have your Project ID for the WalletConnect configuration and replace xxx with it in the code below.

Testing the WalletConnect Connector

Visit http://localhost:3000/signin to test authentication.
  1. Click on Authenticate via WalletConnect
  2. Scan the QR code with your wallet
  3. Connect your wallet
  4. Sign the message:
  5. Visit http://localhost:3000/user to test the user session’s functionality: