Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add user Log In and Sing up apil's for Backend #90

Closed
2 of 3 tasks
shahbaz36 opened this issue Oct 5, 2024 · 3 comments
Closed
2 of 3 tasks

Feat: Add user Log In and Sing up apil's for Backend #90

shahbaz36 opened this issue Oct 5, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@shahbaz36
Copy link

Describe the feature

Your frontend contains a Login button without any functionality, i can help to establish user authentication and authorization in the following way:

  1. I will create a Robust user schema with strong password management using mongoose
  2. Addition of JSON web token for authentication. Every time user singin or singup we will send token back to user.
  3. Based on the schema user Singup will be implemented
  4. After Singup api, i will implement Singin apis for user to log into the application.
  5. Along with this there will be another Protect middleware which can be chained with other middleware to protect routes from unauthorized access. This middleware will make the user document available on request body.
  6. For authorization we can also add a restrictTo middleware which will restrict the routes to specific users with this only admin routes can be protected.

Add ScreenShots

User Schema
Routes for singin and singup
Postman: singup api

Record

  • I agree to follow this project's Code of Conduct
  • I'm a gssoc-24-extd contributor
  • I want to work on this issue
@shahbaz36 shahbaz36 added the enhancement New feature or request label Oct 5, 2024
Copy link
Contributor

github-actions bot commented Oct 5, 2024

Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our CONTRIBUTING.md for guidelines on contributing to this project.
for more information join our discord https://discord.gg/Jh3bWQ7FRN

@RamakrushnaBiswal
Copy link
Owner

RamakrushnaBiswal commented Oct 5, 2024

@shahbaz36 actually we use kinde auth for that and we only need admin login

Copy link
Contributor

github-actions bot commented Oct 6, 2024

Hello @shahbaz36! Your issue #90 has been closed. Thank you for your contribution!🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants