hack4impact-calpoly/go-see-foundation

Login Frontend api fetch

Closed this issue · 0 comments

Description
Add the login api fetch call to the login page so that users have the capability to sign into their accounts.

Acceptance Criteria
Test via your local machine and confirm that you are able to sign in. Make yourself an account, and prove you can sign into it through a screenshot!

Steps:

  • step 1: Add a use state for the email and password sections.
  • step 2: Add a fetch call for the login in post endpoint.
  • step 3: Store the returned json web token(this is what the endpoint returns) into local storage.