Auth0 Home Blog Docs

Empty profile in both idToken and userInfo endpoint

Hi there,

First time using Auth 0. We’re a 2-person team, I’m front end, but it may be a back end issue.

TL;DR - we cannot seem to receive profile information. We have all the logins working, but when we finally get the data via webAuth.client.userInfo(...) calling this endpoint:

  • https://******.eu.auth0.com/userinfo

We get a 200 and an empty object {}.

We have the correct scopes open_id profile email and have read the docs.

I’ve spent the day with both the Vue and Vanilla JS demos here:

Also, the docs here:

As well as a few forum threads, this one being the closest

The OP in the last post said he recreated the tenant and app from scratch, but rather than doing that we’d just like to work out what the settings are that perhaps we have wrong, and go from there.

It’s a bit frustrating as there seem to be differences between some of the docs as well as our experience of the implementation, but hopefully we can get to the bottom of things here.

Thanks,
Dave

Welcome to the Auth0 Community!

Is your callback url going to http://localhost ?

If so, try changing your callback to something like http://jwt.io and log in again, if your ID token shows up with your expected claims on jwt.io then the userinfo endpoint should return data as well and you can switch your callback url back to localhost.

Hey Marcus,

Thanks - tried that and nothing different from what we get locally.

What we’re finding a bit confusing is that 1) the docs here say the data will be in the login payload:

But the docs here say to call webAuth.client.userInfo() to get the user info:

And we’re not getting the information from either of them.

If this indicates a misconfiguration on the server, as the other poster indicated, 1) how did we do that in the first place and 2) what do we do to fix it?

Many thanks,
Dave

Hey there!

Sorry for such huge delay in response! We’re doing our best in providing you with best developer support experience out there, but sometimes our bandwidth is not enough comparing to the number of incoming questions.

Wanted to reach out to know if you still require further assistance?

1 Like