I was trying to get user info from login using twitter in auth0. auth0 provides userInfo api for getting users details, but it is just returning an object with a key sub (like this - {"sub":"twitter|XXXXXXXXX"}
). As per the documentation provided, we should get the name, picture, nickname etc, in my case only one sub is returning. I wanted to know how the details of user can be fetched in auth0.
edit - providing the configs used.
auth0 = new auth0.WebAuth({
domain: AUTH_CONFIG.domain,
clientID: AUTH_CONFIG.clientId,
redirectUri: AUTH_CONFIG.callbackUrl,
audience: `https://${AUTH_CONFIG.domain}/userinfo`,
responseType: 'token id_token',
scope: 'openid'
});