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

Ability to choose specific wallet extension popup for authentication using showConnect function #320

Closed
minahil-imtiaz opened this issue Apr 26, 2023 · 1 comment
Assignees
Milestone

Comments

@minahil-imtiaz
Copy link

Description:
Currently, when using the showConnect function from the stacks/connect package for authentication from a Stacks-supported wallet, if multiple web wallet extensions are installed, the function will show or prompt login popups for all the wallets.

However, in my application, I need to prompt a specific wallet extension popup to open for authentication; for my use case, it is Hiro Wallet. Therefore, I need the ability to choose a specific wallet extension popup to open when using the showConnect function.

This would provide more control and flexibility for developers using the stacks/connect package.

@markmhendrickson
Copy link
Contributor

This would be a good enhancement indeed!

In the meantime, a non-Connect solution could be to detect whether the window.HiroWalletProvider object is available in the DOM and if not, send the user to the wallet's installation page: https://wallet.hiro.so/install-web

And if it is, you can call the API you need directly e.g. getAddresses to connect the user: https://hirowallet.gitbook.io/developers/bitcoin/connect-users/get-addresses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants