You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing a decentralized application (dApp) and integrating UniSat into it. I can prompt the user to connect to UniSat by calling window.unisat.requestAccounts(). However, there is no method available to disconnect. While I can clear my application's internal state and display a "Disconnected" status, attempting to reconnect results in an automatic connection, rather than prompting the user as MetaMask does each time a connection is made. This indicates that the dApp remains connected from the wallet's perspective.
The closest approach to disconnecting is manually removing the connected site from the wallet extension by clicking on "Dapp Connected" and then removing the site. Unfortunately, there is no option to do this programmatically through the window.unisat object. It appears that the method required to achieve this, removeConnectedSite, needs to be exposed either directly through window.unisat or indirectly in some manner.
The text was updated successfully, but these errors were encountered:
I'm developing a decentralized application (dApp) and integrating UniSat into it. I can prompt the user to connect to UniSat by calling window.unisat.requestAccounts(). However, there is no method available to disconnect. While I can clear my application's internal state and display a "Disconnected" status, attempting to reconnect results in an automatic connection, rather than prompting the user as MetaMask does each time a connection is made. This indicates that the dApp remains connected from the wallet's perspective.
The closest approach to disconnecting is manually removing the connected site from the wallet extension by clicking on "Dapp Connected" and then removing the site. Unfortunately, there is no option to do this programmatically through the window.unisat object. It appears that the method required to achieve this, removeConnectedSite, needs to be exposed either directly through window.unisat or indirectly in some manner.
The text was updated successfully, but these errors were encountered: