Girl-Code-It / Opportunity-Calendar-Backend

Opportunity Calendar is the one-stop place to refer important opportunities available in tech-space like newly posted jobs, internships, hackathons, tech-conferences, scholarships, etc.

Home Page:https://opportunity-calendar.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User authentication and routes protection using JSON Web Tokens (JWT)

Vishal1003 opened this issue · comments

  • I am running the latest version
  • I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

@Manvityagi I guess the User api needs to be integrated. There is no user authentication as of now (while the UI is already ready for this). Since there's no user api hence we are not able to proceed with the (Bookmark/Save and share functionality).
I also checked that the frontend is in React, so probably you guys will be using RESTful APIs. So I wish to contribute to this project by implementing the following features -

  • Authentication using JWT
  • Routes protection middlewares to prevent unauthorized access of certain routes.

Expected end result :

  • User authentication
  • We can secure our APIs with this jwt middleware.
  • userId, admin access can be stored in jwt which can be decoded in frontend to use further.

Current Behavior

No such API exists as of now.