Hello everyone! I have an SPA (Reactjs) and I have a function that can change some data via AWS Lambda + Managment API to update a user. However, I am trying to also have my user in React (saved in local storage) also update. The issue is I have some data stored in user_metadata that is deleted, however the data persists in my react application until they logout and log back in. Is there anyway to refresh the user?
Hi @SSelke,
By ‘user saved in local storage’ are you referring to the id_token? If so, token can’t be updated per se. You would have to request a new token with the updated metadata.
If you aren’t referring to the token, can you elaborate on how the user is stored in your react app?
Thanks,
Dan