I am trying to build a web application using Metamask to transfer funds.
As it works now is:
1)User logs in connects the accounts and does XYZ operations
2) When the user logs out the metamask wallet is still connected to the site.
For example http://localhost:3000
3) If another user logs in to the website on same browser they will be able to access User 1’s accounts which is not desirable.
My question is
How can I remediate this situations.
Options explored :
1)Metamask does not have any logout functionality that can be called by code. So that’s not an option
2) Tried to include a specific user’s token in the url so when metamsk prompts for account connectivity, so that url with specific token(speicifc to user) will be registered. But that is not working as metamask only picks up the base website/server i.e localhost/3000
Any help/suggestions on this issue would be much appreciated.
Thanks
My question is
How can I remediate this situations.
Options explored :
1)Metamask does not have any logout functionality that can be called by code. So that’s not an option
2) Tried to include a specific user’s token in the url so when metamsk prompts for account connectivity, so that url with specific token(speicifc to user) will be registered. But that is not working as metamask only picks up the base website/server i.e localhost/3000
Using node.js and react.js for this
Any help/suggestions on this issue would be much appreciated.
Thanks
bot_one is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.