walletconnect-monorepo icon indicating copy to clipboard operation
walletconnect-monorepo copied to clipboard

Provider stuck in limbo after uninstalling wallet

Open TheDutchCoder opened this issue 3 years ago • 0 comments

Describe the bug When a user connects with, say, the CoinBase browser extension, and then the user removes the extension without disconnecting first, WalletConnect is stuck in limbo as it keeps track of the connected wallet in localStorage which isn't updated when an extension is uninstalled/disabled.

Users can now no longer use WalletConnect to connect any wallet, until they reinstall, and manually disconnect from the wallet they uninstalled.

SDK Version (if relevant)

  • Client: "@walletconnect/web3-provider": "^1.7.1"

To Reproduce Steps to reproduce the behavior:

  1. Connect with CoinBase wallet (browser extension)
  2. Uninstall extension
  3. Try to connect a wallet

Expected behavior A clear and concise description of what you expected to happen. The "active" CoinBase wallet to be removed from localStorage upon disable/uninstall, or to do this after a timeout when events don't reach their target?

Desktop (please complete the following information):

  • OS: MacOS 12.3.1
  • Browser Chrome
  • Version 101

TheDutchCoder avatar May 25 '22 16:05 TheDutchCoder