Open vbaranov opened 6 years ago
Problem: for example, if I changed the account from valid voting key to invalid, DApp still thinks that I logged with valid voting key and gives me the ability to send transactions.
Solution: implement interval to check out current account https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#ear-listening-for-selected-account-changes and save it to mobX store
Problem: for example, if I changed the account from valid voting key to invalid, DApp still thinks that I logged with valid voting key and gives me the ability to send transactions.
Solution: implement interval to check out current account https://github.com/MetaMask/faq/blob/master/DEVELOPERS.md#ear-listening-for-selected-account-changes and save it to mobX store