Hi,
So I’m trying to get additional info about the users that log into my app, e.g. family_name, given_name.
I’ve tried using the getUserInfo() method but that was only returning my user’s email.
I’m now trying to call the API /userinfo endpoint but the result is the same.
I’ve added the names properties as claims, but the result is the same, just email and sub.
Here are the options for my API call:
var options = {
method: "POST",
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer '+this.props.oktaAuth.getAccessToken(),
},
};
and the call
fetch(config.oidc_widget.baseUrl+"/oauth2/default/v1/userinfo", options)
Any help will be appreciated,
Thanks,