Metamask-extension: How to revoke permission of ethereum.enable()

Created on 24 Nov 2018  路  3Comments  路  Source: MetaMask/metamask-extension

I am trying to test adding ethereum.enable() to my dApp, but in order to test properly, I need to be able to revoke permission. But ethereum.disable() is not a function, and I cannot find docs on how to do this.

How does one revoke account permission on a given website?

Most helpful comment

Wow, how did I miss that button? Thank so much @micahalcorn !

All 3 comments

@glitch003 in my case, I just open MetaMask > Settings > Clear privacy data. I doubt there is a method for it.

Wow, how did I miss that button? Thank so much @micahalcorn !

It would be nice to have such a method though.

Uport offers similar functionality to remove credentials from localstorage.

Using the button would clear privacy settings for ALL of the users websites, so I still feel functionality to revoke single websites is needed.

Clear privacy data so all websites must request access to view account information again.

Was this page helpful?
0 / 5 - 0 ratings