High-Table-Consortium / fullstack-capstone-dockerized

0 stars 3 forks source link

(Debugging): - Server side authentication for user login and register #99

Closed Tumelo2748 closed 1 month ago

Tumelo2748 commented 1 month ago

Description:

This pull request addresses the implementation of user authentication on the backend, including the login and registration functionality. During testing, issues were identified with both the login and registration processes on the server, which have now been fixed. The following updates and fixes were made:


Tasks Completed:

  1. Login:

    • Fixed the login issue on the server that was causing authentication failures.
    • Stored the received JWT securely in local storage.
  2. Register:

    • Resolved the issue with the registration endpoint that was retuning invalid email or password:
    • Ensured successful user registration and token generation.
    • Store token in a cookie
  3. Token Management:

    • Securely stored the authentication tokens (JWT) in lcookies after successful login or registration.

Files Changed:


Testing: