Update user raw json using refresh token

So when the authorize endpoint is being called a fetch user script will be executed post login and it will receive all the userinfo of a user from my own database using my own custom endpoint.
but when i try to use the forceRefresh flag in auth0-react-native which will cause a successful exchange (sertft), but it will not update the user raw json cause the fetch user profile is only called post authorize.
is there is anyway to manipulate this using an action?
Notice that i use a custom social to make users login

Hi @nizar, and sorry for the late reply!

While there isn’t a way to update the user info during token refresh, you could add custom claims to the ID Token with the necessary information, which I believe will eliminate the need to add the data on token refresh.

Please take a look at our docs on how to create custom claims and let me know if I can assist you further!

Sincerely,
Teodor.