-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MetaMask does not show signature request if open when 'eth_signTypedData' request is sent #4821
Comments
@alex-ppg a simple workaround might be to have the user click a UI element to prompt the signing request, rather than trying to fire it automatically on login. curious what your usecase is – if you're trying to create a sort of log-in behavior, make sure you've checked out this web3 opt-in feature that we'll be rolling out shortly. @danfinlay @bitpshr any other thoughts? |
@bdresser While what I am trying to do is create a sort of log-in behavior, it doesn't exactly work in the same way most DApps do. We are creating a multi-currency front-end wallet that derives the various keys from a seed and in order to support MetaMask, we want the user to sign a randomly generated (once) and server-side stored string, using the resulting signature as the seed for the various currencies. We are going to allow the user to use their Ethereum based wallet directly via MetaMask obviously but we need the signature for the rest of the currencies. |
Excuse me, how do you call MetaMask, is it convenient to call the code to give me a copy? |
Hey @joenhon, sorry for the late response I've been abroad. I recreated the problem in the following Gist: https://gist.github.com/alex-ppg/86ddf1bd997e016aef95f46b8497d7b7 I am developing the application using Angular but the problem seems to be related to the MetaMask plugin API rather than any of the technology stacks as showcased by the Gist which is a simple HTML webpage. I have also tried delaying the signature request for a while but the issue is that the MetaMask pop-up is kept open after unlocking. If I close the MetaMask plugin page before the signature request occurs, the pop-up will show just fine. |
Thanks for the report @alex-ppg ! Are you still experiencing this problem with the latest version of MetaMask? I suspect that this has been fixed. |
Closing this, the issue was the result of the first iteration of the login-per-site and the notification windows. This has since been changed and reworked as well as fix. |
@alex-ppg Could you please let me know how you resolved the issue? I ran into the exact use case and I'm observing the same behaviour. If the wallet is already open, signature screen is not shown unless we explicitly close and open the metamask widget. |
This is quite a crucial issue with user interaction as we cannot reasonably expect a user, after unlocking his account, to close and re-open the MetaMask plugin screen.
Code Example (Ensure your account is locked):
The text was updated successfully, but these errors were encountered: