Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a function revokeAccess that disconnects any previously connected wallets #7037

Open
AnumQ opened this issue May 9, 2024 · 1 comment
Labels
4.x 4.0 related Enhancement Includes improvements or optimizations

Comments

@AnumQ
Copy link

AnumQ commented May 9, 2024

Create function named revokeAccess to disconnect previously connected wallet

Create a function revokeAccess that implements the following RPC call in order to disconnect any previously connected accounts:

await window.ethereum.request({
    method: "wallet_revokePermissions",
    params: [
      {
        eth_accounts: {},
      },
    ],
  });

See more details here

@SantiagoDevRel
Copy link
Member

good point @AnumQ !
@mconnelly8 she is one of the web3.js ambassadors :)

@SantiagoDevRel SantiagoDevRel added 4.x 4.0 related Enhancement Includes improvements or optimizations labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x 4.0 related Enhancement Includes improvements or optimizations
Projects
None yet
Development

No branches or pull requests

2 participants