Using JWT to retrieve and update user profile info

I created a ReactJS web app with a “user profile” page where the logged user can save: name, surname, email and address. For the moment, every time I log-in and save the data a new object is created.

I would like each logged user to be linked to a single ID, namely Auth0 one, so that I can always retrieve and update the row of the right user in my MySQL database.
I read this Guide everything works without problems. Now how can I use JWT to make sure that every row in my database is only retrieved and updated by the right user?

Hi @rutiglianomassimilia,

You can use the sub claim (user ID) in the access token to update/retrieve the user’s table.

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