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?