# Modifying ID token

**URL:** <https://community.auth0.com/t/modifying-id-token/141143>\
**Category:** Get Help\
**Tags:** oidc, protocols\
**Created:** [August 15, 2024, 7:51pm UTC](https://community.auth0.com/t/modifying-id-token/141143 "2024-08-15T19:51:21Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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 15, 2024, 8:29pm UTC](https://community.auth0.com/t/modifying-id-token/141143/5 "2024-08-15T20:29:06Z")

</div>

You will need to re-auth the user one way or another - It depends on the technology you are working with, but silent auth is an option for SPA SDKs for example:

> [@Re fetching idtoken](https://community.auth0.com/t/re-fetching-idtoken/114982/3):
>
> Hey @auth0rocks ! metal 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/modifying-id-token/141143)._
