I am using MetaMask for sending transactions to contract in my DApp. I need help in How to Disconnect MetaMask account from my DApp when the user clicks on logout button.
Front-end: ReactJS
Back-end: Web3js, Solidity (Ethereum)
as per documentation we can use onboard.walletReset() and it returns undefined and its doesn't disconnect from wallet.from frontend we needs to make the state emp The below is the clear understanding lins from documentations // user wants to log out of session and the wallet state needs to be reset... onboard.walletReset() // this method is synchronous and returns undefined