Skip to content
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

Prompt user to allow access on first use by site #9

Closed
jacogr opened this issue May 21, 2019 · 1 comment · Fixed by #20
Closed

Prompt user to allow access on first use by site #9

jacogr opened this issue May 21, 2019 · 1 comment · Fixed by #20

Comments

@jacogr
Copy link
Member

jacogr commented May 21, 2019

Goal:

Allow the user to approve any access to the accounts & signer.

Background:

Currently accounts.get() will returns the accounts listed.

Actions:

  • When the site requesting the accounts has not been approved yet, prompt the user to approve.
  • If approved, all accounts are returned
  • When disabled, the accounts are not approved

So 2 things -

  • can either reject on the calls (via error) if not approved
  • or have an explicit enable() call that injects

Since everything is call-based, we can just manage it on this level. (And much easier for dapp developers to integrate)

@polkadot-js-bot
Copy link

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.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Jun 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants