Auth0 get userinfo 401 error

I use auth0-js
this.auth0 = new auth0.WebAuth({
clientID: this.config.getConfig().auth.clientID,
domain: this.config.getConfig().auth.domain,
responseType: ‘token id_token’,
audience: this.config.getConfig().auth.audience,
redirectUri: this.config.getConfig().auth.redirectUri,
scope: ‘offline_access openid profile’
});

when I log in with username password
this.auth0.login({
realm: ‘Username-Password-Authentication’,
username,
password,
}

and then get user profile
this.auth0.client.userInfo(accessToken, (err, profile) => {
if (profile) {
self.userProfile = profile;
}
cb(err, profile);
});

its all ok,
but when I try to login with salesforce

loginSF(): void {
this.auth0.authorize({
connection: ‘salesforce’,
responseType: ‘token id_token’,
scope: ‘offline_access openid profile contacts’
});

and try to get userinfo I have error 401, what I`m missing?
token is valid, I can use it in api etc, but userinfo not getting

Hey @a.martunenko

As it has been more than a few months since this topic was opened and there has been no reply or further information provided from the community as to the existence of the issue we would like to check if you are still facing the described challenge?

We are more than happy to assist in any way! If the issue is still out there please let us know so we can create a new thread for better visibility, otherwise we’ll close this one in week’s time.

Thank you!

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.