-
Notifications
You must be signed in to change notification settings - Fork 316
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
makeAuthResponse username is not populated for .btc
names
#1144
Comments
The usernames of which network would you expect? You get the stx address for mainnet and testnet and could use that to find a username. This is done in the todo example hirosystems/todos#104 |
My understanding is that only one name is allowed at a time, so I was expecting to have the username filled, the Hiro wallet extension is displaying the .btc name, so it's a bit confusing that it's not passed down as the other names (.id.stx ... ) |
@pradel I agree. It is confusing. This needs to be defined in the auth protocol. I don't like the |
Is this issue resolved or is further action needed here for Stacks.js? |
@markmhx I don't know what approach you want to go with for this, but from a user perspective, the current behaviour of the username field is really confusing. |
I like to see the username in the auth response: stacksgov/sips#50 |
This issue may be the cause of problems I'm experiencing when trying to use the Steps to repro:
Error @ btc.us/:1
Error @ main.js/:10
Clearly the second error is unhappy with a 301. The In this instance I would love to know how to destroy the old I was originally following Issue #1117 which seemed like it may be the fix. So either it's still borked, or perhaps the |
I am developing a web application with |
cc: @friedger or @kyranjamie for thoughts. |
@m-roll The current implementation does not return usernames. |
Thanks! |
Just running through this issue with @janniks. Can someone explain why it's important for the wallet to return a username in the first place? App can themselves query the registrar. Is anyone opposed to killing this functionality? Stacks.js could even expose helper methods to fetch the name. |
As it's easy for apps to fetch the name, definitely not opposed to remove this functionality. This issue was more for consistency as the .btc names were not injected. Moving to the app level is good too. |
I'd also support removing the username from the wallet's response data as part of our general intent to separate concerns better going forward. |
Describe the bug
When the user login into an application via the Hiro wallet, the username field is an empty string while it should be the .btc domain.
What version of Blockstack.js are you using?
Is the bug present in the Blockstack CLI, Gaia hub, Connect or Blockstack Browser?
To Reproduce
Steps to reproduce the behavior:
userSession.loadUserData()
and see that theusername
field is an empty stringExpected behavior
When the user is logging in into my app I should be able to read the owner .btc username from the
userSession.loadUserData()
function. Similarly to .id.stx names.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: