Skip to content

Frontend endpoint for update profile #56

@Ajknight121

Description

@Ajknight121

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions