Skip to content

Frontend: Favorite Service should not send the user is

When a user want to add a film to his favorite, he click on the fav button. The button trigger the call to the favorite service. The favorite service send the film id that the use want to add to his favorite and the Authorization Bearer.

The backend receive the request, it access the User from the JWT data and then add the film to the user fav.

Check https://csharp.nouvet.fr/webapi/auth.html at 'Récupération de l'utilisateur' to see how you can retrieve the user id from his token in the back.