auth0 / lock-passwordless

Auth0 Lock Passwordless [DEPRECATED]
MIT License
90 stars 29 forks source link

Add getUserInfo() #131

Open dinvlad opened 7 years ago

dinvlad commented 7 years ago

Hi Team,

Could you add getUserInfo() method (which calls /userinfo) so we could use it with the new API feature (which returns access_token in place of id_token)? Otherwise, we cannot use API audience parameter (#130) because it only returns access_token, and getProfile() expects id_token (and calls /tokeninfo).

As a temporary workaround, we have to call /userinfo directly to get the user profile. Or we need to include auth0.min.js and call userInfo() from there.

Thanks