Skip to main content

Before Starting

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

Configuring the Coinbase Wallet Connector

  1. Open the pages/signin.jsx file and add CoinbaseWalletConnector as a connector to connectAsync():

Testing the Coinbase Wallet Connector

Visit http://localhost:3000/signin to test authentication.
  1. Click on Authenticate via Coinbase Wallet
  2. Connect Coinbase Wallet
  3. Sign the message
  4. After successful authentication, you will be redirected to the /user page
  5. Visit http://localhost:3000/user to test the user session’s functionality: