# Id token payload when calling parseHash with auth0js

**URL:** <https://community.auth0.com/t/id-token-payload-when-calling-parsehash-with-auth0js/10008>\
**Category:** Get Help\
**Created:** [March 13, 2018, 9:18am UTC](https://community.auth0.com/t/id-token-payload-when-calling-parsehash-with-auth0js/10008 "2018-03-13T09:18:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacinto.arias](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jacinto.arias/32/7572_2.png) [@jacinto.arias](https://community.auth0.com/u/jacinto.arias)\
**Post date:** [March 13, 2018, 9:18am UTC](https://community.auth0.com/t/id-token-payload-when-calling-parsehash-with-auth0js/10008/1 "2018-03-13T09:18:37Z")

</div>

Hi all,

I am using auth0js@9.3.3 in an angular project and I am observing a (positive!) behaviour that I can’t find in the documentation.

After returning from the callback I invoke the `parseHash` method to retrieve my tokens, in the documentation (even in the full API docs) It is stated that the object returned contains `{idToken, accessToken, expiresIn}`. However I am also obtaining the very convenient `idTokenPayload` property, along many others like `appState , refreshToken , scope, state, tokenType `.

The token payload allows me to cache the user info directly without an additional call to auth0 API. My question is, why is every tutorial and documentation piece I see performing an additional call and ignoring this behaviour? As I cannot see any reference to such behaviour I fear that this could be on the road to deprecation or being not recommended…

I believe that the method `parseHash` is validating the IDToken with nonce and signature so I do not need to take further action. Also If I am caching just both my tokens, do I need to cache user info and expiration time or can I just parse the info back from my Idtoken after a refresh?

This is working great, I am just looking for advice or clarification from the pros!

Cheers!

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 18, 2018, 3:24pm UTC](https://community.auth0.com/t/id-token-payload-when-calling-parsehash-with-auth0js/10008/2 "2018-12-18T15:24:50Z")

</div>

Hey @jacinto.arias

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!

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 25, 2018, 7:25am UTC](https://community.auth0.com/t/id-token-payload-when-calling-parsehash-with-auth0js/10008/4 "2018-12-25T07:25:22Z")

</div>

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