jain-rishabh-21 / DoctorVerse

An application that will help people find doctors and hospitals nearby along with the ratings and facilities available
MIT License
32 stars 54 forks source link

feat: Implement Role Based Authentication #82

Open madhur87 opened 1 year ago

madhur87 commented 1 year ago

Description of the new feature.

Implement role based authentication level.

Some roles details:-

  1. Patient - only edit own data like profile
  2. Doctor - add user data with prescription and history details
  3. Admin - add doctor data and update

Describe briefly how you would implement this new feature.

Some steps to implement this enhancement-
1. Implement role authentication file
2. Add in jwt token 
3. Add projection a/c roles

Screenshots Example (if applicable)

No response

Additional information

Please assign me! @jain-rishabh-21

Contributor terms

apeksha235 commented 1 year ago

you can go ahead @madhur87

madhur87 commented 1 year ago

Sure, Please assign me! @apeksha235

madhur87 commented 1 year ago

Hi @apeksha235, can you assign this issue, please?

Kushagra102 commented 1 year ago

Hey @apeksha235 I recently applied a role based authentication for a student, faculty and warden type roles in my hackathon project. I would like to work on this issue.