MarisiaS / SMM

0 stars 0 forks source link

FE-Login #79

Closed MarisiaS closed 4 months ago

MarisiaS commented 4 months ago

This PR addresses issue #78

Implementation

  1. Installed the following packages:
  1. Components: Added a folder named componentsto src.

Created two components:

  1. Form elements Inside the components folder, created a folder named FormElements to store all the fields used in forms.

Added three field:

  1. CSS

Modified index.css and App.css to add styles to the elements used in our codebase.

  1. SmmApi

Created a utility class named SmmApi to encapsulate Axios requests to the backend API. Implemented a login method to handle user authentication by sending a POST request to the login endpoint. Added a interceptor to refresh token when access is expired