MahendraDani / project-Encode

Fully functional MERN stack app similar to leetcode to boost devs .
3 stars 1 forks source link

feat: Add user authentication using jwt tokens #1

Open MahendraDani opened 1 year ago

MahendraDani commented 1 year ago

Description

The project has the api routes for signing up and logging in the user, but there is no authentication system initialized yet. This results in protected routes being exposed to all users irrespective of their auth states.

Expected Outcome

  1. Once the user logs in, an access token is sent to the user, which can be used as a primary validation key for all the user requests in the entire session.
  2. Create a user session for logged in user and continue it till the user logs out.
  3. Connect the backend api with the frontend signup and login forms.
MahendraDani commented 1 year ago

The commit resolves expected outcomes 1 and 2.

Tasks Remaining

Connect the route GET : /problems to the client-side. Fetch all the problems from the api and render it on the frontend.