Auth0 Home Blog Docs

userInfo call is returning empty object




I am using auth0-js npm package v9.3.0 for social connections on my website. Lately I am getting empty object when I call auth0.client.userInfo call with access_token after user has been successfully authenticated.
Does anyone know why one would get completely empty object as response to userInfo call with latest access token every time? This is breaking the login flow in production.


You need to make sure you’ve set the openid and profile scopes when you request the access token. If these aren’t present you will receive an empty response from userinfo.


I have got “profile email” in scope and it was working till couple of days ago and suddenly I am getting an empty response.