torusresearch/torus-embed

No event been fired on logout or disconnect, Not so good UX

shinsuny opened this issue · 1 comments

Describe the bug
Similar to #235 #311
In case of metamask accountsChanged is fired when app is disconnected from the metamask.
But could not find any event been fired on torus provider which leads to the poor UX.

To Reproduce
Steps to reproduce the behavior:

  1. Login and press Open Wallet of torus-embed
  2. Go to account of top right and from pull down press "logout"

Screen Shot 2022-02-16 at 14 18 40

  1. "logout" is done so next we need to login

Screen Shot 2022-02-16 at 14 19 48

  1. Because there is no event fired we cant make logout on our app, not so good UX

Expected behavior
There should be an event fired in case of logout button pressed. (like metamask accountsChanged will be great)

Hi @shinsuny this issue is resolved, It now emits accountsChanged on logout. Thanks,