[Archive] Link WalletConnet/Metamask with Openlogin

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by githubdiscussions on 11/21/2022.
This content has been migrated from our previous community forum to preserve valuable discussions.


I want to start a discussion about what I'm trying to achieve with Web3Auth.

Users sign up with their metamask (or other wallet) and I save their web3 public key in my DB.
They can then add some social login like Twitter. I will then create a link in my DB between their Twitter id and their web3 public key.

Some problems that I have.

  • I've got metamask login set up, but I can't find a way to get the public key. getUserInfo() returns empty
  • I can't get WalletConnet to work. Is it because v2 is not supported yet and my app is v1 maybe? I can't tell what version my app is from my walletconnect dashboard


Originally posted by: culda

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/909
  • When connecting with Metamask or other wallets, you can get the public key using getAccounts function depending upon the EVM library you are using (ethers,web3js). Here is an example depicting the same.
  • getUserInfo() only works for social logins, not external wallets.
  • The WalletConnect v2 is not backwards compatible. Can you provide screenshots of the errors when using WalletConnect?


Originally posted by: Saviour1001