google / identity-toolkit-java-client

Google Identity Toolkit client library for Java
Apache License 2.0
37 stars 27 forks source link

Expose JsonTokenHelper in GitkitClient #12

Closed jiangwei1221 closed 9 years ago

jiangwei1221 commented 9 years ago

Given a Gitkit token, I'd like to have a verified version of JSON object instead of just the GitkitUser. To do so I suggest to provide a getter for JsonTokenHelper. Please confirm this change is acceptable.

Thanks!

liujin-google commented 9 years ago

Returning the JSON object is a reasonable request. How about add a GitkitUser.getJson() method, or GitkitClient.validateTokenToJson()?

jiangwei1221 commented 9 years ago

I'm interested in the expiry of the token so GitkitClient.validateTokenToJson() seems more reasonable. I'll create a pull request.