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

UserSession fields not populated after loadUserData function call #1199

Closed
m-roll opened this issue Feb 27, 2022 · 2 comments
Closed

UserSession fields not populated after loadUserData function call #1199

m-roll opened this issue Feb 27, 2022 · 2 comments

Comments

@m-roll
Copy link

m-roll commented Feb 27, 2022

Describe the bug
After calling userSession.loadUserData() after the authentication flow, fields like username are not properly populated. I am using the Todos app example. If you use the live demo, you can see that the username field is blank. The username should show in the upper right corner in the live demo but is instead an empty string. I am seeing the same behavior in my own app.

In my wallet, I have a .btc domain that I would expect to be used as my "username". Is my thinking incorrect?

What version of Stacks.js are you using?
Using version 2.0.1 of @stacks/auth
Is the bug present in the Stacks.js CLI, Gaia hub, Connect or Blockstack Browser?
In the stacks.js frontend library
To Reproduce
Steps to reproduce the behavior:

  1. Go to the Todos example (or any app using hiro connect/auth)
  2. Follow the auth flow
  3. Username is blank

Expected behavior
username should show the one selected from the authorization flow

Desktop (please complete the following information):

  • Browsers tested: Chrome, Brave
@pradel
Copy link
Contributor

pradel commented Feb 28, 2022

@m-roll this one looks pretty similar to #1144

@janniks
Copy link
Collaborator

janniks commented May 4, 2022

Closing issue, due to removal of usernames in the wallet auth response.

@janniks janniks closed this as completed May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants