# How to refresh user information in client side when it is changed by mangement api

**URL:** <https://community.auth0.com/t/how-to-refresh-user-information-in-client-side-when-it-is-changed-by-mangement-api/101233>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [February 24, 2023, 3:34pm UTC](https://community.auth0.com/t/how-to-refresh-user-information-in-client-side-when-it-is-changed-by-mangement-api/101233 "2023-02-24T15:34:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cryogon](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cryogon/32/44809_2.png) [@cryogon](https://community.auth0.com/u/cryogon)\
**Post date:** [February 24, 2023, 3:34pm UTC](https://community.auth0.com/t/how-to-refresh-user-information-in-client-side-when-it-is-changed-by-mangement-api/101233/1 "2023-02-24T15:34:06Z")

</div>

How can I refresh user information when it is changed by management api.  
Suppose User changed his profile picture it should reflect on user object (I am using auth-0/vue)

---

<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:** [February 24, 2023, 11:35pm UTC](https://community.auth0.com/t/how-to-refresh-user-information-in-client-side-when-it-is-changed-by-mangement-api/101233/3 "2023-02-24T23:35:58Z")

</div>

Hey again @cryogon !

You could perform silent auth to get new tokens - In this particular case (profile pic) you’d need an ID token since that will contain user profile data. Depending on the specifics you may want to take a look at `getAccessTokenSilently` here:

> **[Auth0VueClient | @auth0/auth0-vue](https://auth0.github.io/auth0-vue/interfaces/Auth0VueClient.html)**
>
> Documentation for @auth0/auth0-vue

You can set `cachemode: 'off'` to force the refresh of tokens even if they aren’t expired, this is outlined here:

> <https://github.com/auth0/auth0-vue/blob/main/MIGRATION_GUIDE.md#ignorecache-on-getaccesstokensilently-has-been-removed-and-replace-with-cachemode>

Alternatively, if the change is as simple as a profile pic you could get away with just hitting `/userinfo` [endpoint](https://auth0.com/docs/api/authentication#get-user-info).

Hope this at least helps you with some idea as to what’s possible!

---

<div class="post-metadata">

**Author:** ![cryogon](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cryogon/32/44809_2.png) [@cryogon](https://community.auth0.com/u/cryogon)\
**Post date:** [February 25, 2023, 4:28pm UTC](https://community.auth0.com/t/how-to-refresh-user-information-in-client-side-when-it-is-changed-by-mangement-api/101233/4 "2023-02-25T16:28:04Z")

</div>

Thanks for helping again @ty.frith.

---

<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:** [February 27, 2023, 9:20pm UTC](https://community.auth0.com/t/how-to-refresh-user-information-in-client-side-when-it-is-changed-by-mangement-api/101233/5 "2023-02-27T21:20:48Z")

</div>

No problem, happy to help!

---

<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:** [March 13, 2023, 9:21pm UTC](https://community.auth0.com/t/how-to-refresh-user-information-in-client-side-when-it-is-changed-by-mangement-api/101233/6 "2023-03-13T21:21:44Z")

</div>

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