Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserProfile.getExtraInfo() always null #31

Closed
pdelorme opened this issue Oct 11, 2016 · 1 comment
Closed

UserProfile.getExtraInfo() always null #31

pdelorme opened this issue Oct 11, 2016 · 1 comment

Comments

@pdelorme
Copy link

Im using auth0-java in a SpringBoot application with ng2 on the front side.
Authentication and authorisation goes well but when I can't get user info from the JWT token on the server.
While UserProfile is retrieved without problems, the profile extraInfo is always Null even though I get this info through the support page

see this example :

final Request<UserProfile> request = client.tokenInfo(token.getJwt());
final UserProfile profile = request.execute();
logger.trace("JWT.profile:nickname :"+profile.getNickname()); // OK
Map<String, Object> extraInfo = profile.getExtraInfo();
logger.trace("JWT.profile.size :"+extraInfo.size()); // NULL POINTER

any suggestions ?
thanks.

@lbalmaceda
Copy link
Contributor

Please check our latest version as it's a bit more generic. You'll still need to know each property name and perform a null check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants