In UserContext create a function updateProfile that sends a put request to the server to update the user's profile. It should accept parameters for all user fields. (userName, email, password, avatar, bio) these parameters can be null
Definition of Done:
- UserContext exports updateProfile function
- updateProfile loads the URL to the server for an .env file. NOTE vite env vars must be prefixed with
VITE_APP_
- updateProfile updates the UserContext with user's information and their sign in state
In UserContext create a function updateProfile that sends a put request to the server to update the user's profile. It should accept parameters for all user fields. (userName, email, password, avatar, bio) these parameters can be null
Definition of Done:
VITE_APP_