Julien-Goletto / cinevoraces-front

Frontend React App that consummes cinevoraces-back REST API
4 stars 0 forks source link

User page access #6

Open BenoitSafari opened 2 years ago

BenoitSafari commented 2 years ago

Description

User page access is currently restricted to logged user. We need to define if visitor can see that page. User.tsx doesn't need to be updated to do so (it already handle the case), we just have to give up the token requirement on fetched route /v1/users/${id} (getOneUser). Response sample:

{
  id: number,
  pseudo: string,
  role: string,
  avatar_url: string,
  created_at: string
}

Users avatar should be clickable and send to user's page.

Checklist