Closed minahil-imtiaz closed 1 year ago
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
Description: Currently, when using the
showConnect
function from thestacks/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.