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
Ensure availability of user profile data #314
Comments
The issue is that the legacy blockstack browser returns the profile in the authReponse token fetched from the profile url, while the new blockstack app/authenticator does not do this lookup. Apps that still want to see the profile of a user should call lookup profile (http://blockstack.github.io/blockstack.js/globals.html#lookupprofile) I guess.
Interestingly, for apps that request |
@hstove thoughts on adding this support back in for single-player apps? |
@friedger using lookupProfile still does not give access to name() and avatarUrl() needed for personalization. |
@dantrevino |
@friedger I dont see it. What am I missing?
|
For missing profile details see #322 |
I've pushed a fix to the authenticator - there were some issues where we weren't properly fetching the profile before the |
@hstove fyi, this is still not working using the class methods. i've made sure that my profile has a name and avatar: https://gaia.blockstack.org/hub/1JE8MjzuSi19cBifCvrbsyAjx8PvwhakZp/profile.json my sign in method:
logInUser():
and the output of console.log() .. note the name and avatar are still
However, when i look at
|
@dantravino the problem here is that Thanks for following up on the issue still persisting when you use the |
Hey @dantravino - looks like you need to just call https://blockstack.github.io/blockstack.js/index.html#quickstart-build-an-application |
userData from userSession.loadUserData() does not work the same as the legacy blockstack.js methods.
With the previous auth I could
let person = new blockstack.Person(userData)
to get browser-set 'name' and 'avatar' profile data. ie.person.name()
andperson.avatarUrl()
.With connect, the process above returns
null
for both person.name() and person.avatarUrl(), even if they exist.This is a regression for those apps that want to allow some semblance of personalization.
The text was updated successfully, but these errors were encountered: