# Re fetching idtoken

**URL:** <https://community.auth0.com/t/re-fetching-idtoken/114982>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [August 29, 2023, 5:52pm UTC](https://community.auth0.com/t/re-fetching-idtoken/114982 "2023-08-29T17:52:46Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [August 29, 2023, 11:30pm UTC](https://community.auth0.com/t/re-fetching-idtoken/114982/3 "2023-08-29T23:30:40Z")

</div>

Hey @auth0rocks ! 🤘

> [@auth0rocks](#):
>
> Is there anyway to fetch a freshly minted idtoken by re invoking getIdTokenClaims or do I need to logout and back in?

This should be possible by calling [getAccessTokenSilently](https://auth0.github.io/auth0-react/interfaces/Auth0ContextInterface.html#getAccessTokenSilently) and passing the [cacheMode param](https://auth0.github.io/auth0-react/interfaces/GetTokenSilentlyOptions.html#cacheMode) `{cacheMode: "off"}`. This basically just forces the refreshing of tokens - Unfortunately I am not aware of any way to only get a new ID token, so this will also return a new access token.

Hope this helps!

---

_[View the full topic](https://community.auth0.com/t/re-fetching-idtoken/114982)._
