Is there a way to trigger the reconnection of all the metamask accounts with the given snap? #2027
himalayan-dev
started this conversation in
General
Replies: 1 comment
-
Any answer to this would be appreciated. We're also running into the same issue @Montoya |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following scenario:
This works well when the initial condition is where the snap isn't installed.
However, if the snap is already installed, there's currently no way to force user to re-request snap permissions. For SIWE, we can easily just call the "wallet_requestPermissions" API however, there's no similar function for the snap.
Sometimes, there will be a case whereby user adds a new metamask account that was previously not authorized. We basically need a way to force user to re-authorize this newly added account because otherwise, the snap still uses the last connected metamask account if the current connected metamask account is a new account that was added later.
I hope that makes sense.
Beta Was this translation helpful? Give feedback.
All reactions