Add necesary logic and endpoint for such requrements:
The dApp sends eth_requestAccounts and upon confirmation from the user we return the wallet address, associate it with that dApp and consider it permitted.
Closing the browser plugin or restarting the status app does not change the permitted. It should still show up in the list and when reconnecting, the previously associated account should be returned instead of the user confirmation request.
The dApp will lose the permitted state when the user clicks the 'disconnect the dapp' button in the connected dApps dialog in status app.
The dApp will lose the permitted state when it receives the wallet_revokePermissions command from the browser plugin.
Add necesary logic and endpoint for such requrements: