# Get latest useAuth0().user after getAccessTokenSilently

**URL:** <https://community.auth0.com/t/get-latest-useauth0-user-after-getaccesstokensilently/90092>\
**Category:** Get Help\
**Tags:** react, auth0\
**Created:** [September 6, 2022, 7:30pm UTC](https://community.auth0.com/t/get-latest-useauth0-user-after-getaccesstokensilently/90092 "2022-09-06T19:30:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott.liu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/scott.liu/32/33434_2.png) [@scott.liu](https://community.auth0.com/u/scott.liu)\
**Post date:** [September 6, 2022, 7:30pm UTC](https://community.auth0.com/t/get-latest-useauth0-user-after-getaccesstokensilently/90092/1 "2022-09-06T19:30:13Z")

</div>

Please include the following information in your post:

- Which SDK this is regarding: @auth0/auth0-react
- SDK Version: 1.6.0

Inside one of my component, I’m updating the accessToken by passing one of the props as the parameters like this:

```auto
      const accessToken = await getAccessTokenSilently({
        ignoreCache: true,
        accountId: props.id,
      });

```

I also have a hook function in login flow of auth0 which will update the accessToken and idToken according to the params(accountId) I passed in. Like this:  
`api.idToken.setCustomClaim(`${namespace}/accountId`, accountId);`  
My expectation is:  
after calling getAccessTokenSilently, I want to get the latest user from auth0 which has the /accountId.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [September 30, 2022, 11:45pm UTC](https://community.auth0.com/t/get-latest-useauth0-user-after-getaccesstokensilently/90092/3 "2022-09-30T23:45:30Z")

</div>

Hi @scott.liu,

Are you talking about an Auth0 Action? It sounds like you are looking for the `event.query` object, which should contain any additional query params. I don’t think that value would be populated as `accountId` automatically.

Posting your entire Action could be helpful here.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 14, 2022, 11:45pm UTC](https://community.auth0.com/t/get-latest-useauth0-user-after-getaccesstokensilently/90092/4 "2022-10-14T23:45:52Z")

</div>

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