stellar / soroban-example-dapp

End-to-End Example Soroban Dapp
Apache License 2.0
1.03k stars 830 forks source link

When wallet authorized & refresh, should connect automatically to wallet #119

Open esteblock opened 1 year ago

esteblock commented 1 year ago

What problem does your feature solve?

1.- I manually connect to wallet 2.- I have to authorize in my wallet 3.- I can see my address 4.- I refresh the page 5.- (PROBLEM) I cannot see my address even if the wallet already authorized this connection 6.- If I click on "Connect", I don't need to authorize again to see my address

What would you like to see?

On step 5 I should see my address, without needing to explicitly press the "Connect Wallet" button again

How we could do it?

Implementing the isAllowed method of Freighter API (https://docs.freighter.app/docs/playground/isallowed/) on @soroban-react https://github.com/esteblock/soroban-react/issues/38