Closed sahilnanda1995 closed 3 years ago
Hi, this is not possible, because this would mean you would have a way to identify if users have the extension silently (without the user knowing) which is not great.
For this reason, it is advised to have a button to let users "connect with the extension" so that this popup is displayed when the user requests it. You can then remember this in memory of your Dapp.
Thank you so much @Tbaut
You can then remember this in memory of your Dapp.
Got it. Also, is there a time limit after which extension forgets/resets approval for a Dapp after the last authorization.
No limit.
Well, there is actually - currently the auth state is stored in the extension memory, so it gets reset when the user restarts the browser.
currently the auth state is stored in the extension memory, so it gets reset when the user restarts the browser.
Got it, Thanks @jacogr
"remembering certain dapps for future(even after browser restart)" can this be a feature for the extension or will this also raise some security issues?
There is an issue logged to persist and allow the user to manage the dapp auth state.
closing since it directly overlaps with #85
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.
await web3Enable('my cool dapp');
Above call immediately triggers authorization pop-up to allow or reject access, is there a way I can check for authorization before triggering the pop-up?