# How to fetch new token after updating user\_metadata in React

**URL:** <https://community.auth0.com/t/how-to-fetch-new-token-after-updating-user-metadata-in-react/65784>\
**Category:** Get Help\
**Tags:** node, user\_metadata, react, token, auth0\
**Created:** [July 8, 2021, 5:10am UTC](https://community.auth0.com/t/how-to-fetch-new-token-after-updating-user-metadata-in-react/65784 "2021-07-08T05:10:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nickbrooks](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nickbrooks/32/13374_2.png) [@nickbrooks](https://community.auth0.com/u/nickbrooks)\
**Post date:** [July 8, 2021, 11:55am UTC](https://community.auth0.com/t/how-to-fetch-new-token-after-updating-user-metadata-in-react/65784/2 "2021-07-08T11:55:51Z")

</div>

If you’re using the auth0-react package, you can call `getAccessTokenSilently({ ignoreCache: true })` which will re-fetch tokens from auth0.

e.g.

```auto
import { useAuth0 } from "@auth0/auth0-react";

const MyComponent = () => {
  const { getAccessTokenSilently } = useAuth0();

  const onClick = (e) => {
    // call your api
    getAccessTokenSilently({ ignoreCache: true });
  }

  return (<> ... </>);
}

```

---

_[View the full topic](https://community.auth0.com/t/how-to-fetch-new-token-after-updating-user-metadata-in-react/65784)._
