Is there a way to logout of MetaMask from my own frontend, allowing the user to logout with a button rather going up to the Metamask extension and logging out through the traditional manner?


No, there is no way. This is by design, for security reasons (no change of address, login, logout, or any other sensitive operation that MetaMask requires the user to do himself).

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.