blocknative / web3-onboard

Client library to onboard users to web3 apps
https://onboard.blocknative.com/
MIT License
836 stars 495 forks source link

How disconnect account? #2285

Open yanfeizuo opened 2 weeks ago

yanfeizuo commented 2 weeks ago

Current Behavior

Now,I can diconnect wallet by the interface disconnectWallet,but I need disconnect the account by the same time.Is there a interface to diconnect account.

Expected Behavior

When I disconnect your wallet, disconnect my account as well.

Steps To Reproduce

No response

What package is effected by this issue?

@web3-onboard/vue

Is this a build or a runtime issue?

Build

Package Version

2.8.2

Node Version

No response

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Anything else?

No response

Sanity Check

pellyadolfo commented 1 day ago

yes, in order to switch account, after disconnect wallet, i have to manually go to metamask and disconnect the account myself. Otherwise, the next time I connect, web3-onboard uses directly the same account, +1

The AccountCenter says: Action required in MetaMask Please switch the active account in your wallet. Learn more.