paradigmxyz / rivet

Developer Wallet & DevTools for Anvil
MIT License
832 stars 71 forks source link

Feature: Basic Dapp connection authorization screen #48

Closed jxom closed 1 year ago

jxom commented 1 year ago

The Request

The ability for a user to authorize a connection to a Dapp via a UI, and also to toggle between "Instant Connect" mode & authorization mode.

Problem

Right now, all connections initiated from a Dapp are in "Instant Connect" mode, meaning that all connection (eth_requestAccounts) requests are immediately authorized. There is no way to reject a request to test a rejection flow.

Solution

As a user, upon connecting to a Dapp, I expect to see a basic pending authorization UI so that I can accept or reject the connection. From the "Sessions" screen, I also would like the ability to toggle between "Instant Connect" mode, and authorization mode.