brave-browser
brave-browser copied to clipboard
Allow for automatic revoking of Ethereum permissions
We currently don't revoke permissions, but we should figure out the best way to do that. See also: https://danajwright.medium.com/why-the-crypto-wallet-will-soon-be-a-thing-of-the-past-4c4167dc214a
cc @iefremov @goodov for recommendations here
PermissionLifetime
should work for this.
Currently BraveEthereumPermissionContext
with UI part is quite customized and doesn't set lifetime setting. It needs to call PermissionRequest::SetLifetime
and PermissionLifetimeManager::PermissionDecided
for PermissionLifetimeManager
to properly track and reset a permission after some period.