JWT token will containt username. So get the cart id from username and use that cart id add the specified product. In the add cart endpoint feed the username that comes from the JWT token to fetch the cart id. Disregard the username that comes from the body.
JWT token will containt username. So get the cart id from username and use that cart id add the specified product. In the add cart endpoint feed the username that comes from the JWT token to fetch the cart id. Disregard the username that comes from the body.