Auth0 Home Blog Docs

accessing user profile

profile
user-profile

#1

when i try to access user profile, it send me

getProfile(cb) {
  //let accessToken = localStorage.getItem("accessToken");;
  console.log("inside getprofile")
  let accessToken = this.getAccessToken();
  this.auth0.client.userInfo(accessToken, (err, profile) => {
    if (profile) {
      console.log("profile is ",profile)
      this.userProfile = profile;
    }
    //cb(err, profile);
    console.log("err is ",err)
  });
}

profile is sub:"auth0|5a340b94197c4f68f0083e3a"

I was expecting email in user profile. Can someone tell me , whats the issue here?


#2

You might get some help from this

[https://community.auth0.com/questions/6372/cannot-get-profile-information-using-userinfo] (https://community.auth0.com/questions/6372/cannot-get-profile-information-using-userinfo)


#3