You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your frontend contains a Login button without any functionality, i can help to establish user authentication and authorization in the following way:
I will create a Robust user schema with strong password management using mongoose
Addition of JSON web token for authentication. Every time user singin or singup we will send token back to user.
Based on the schema user Singup will be implemented
After Singup api, i will implement Singin apis for user to log into the application.
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.
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
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
The text was updated successfully, but these errors were encountered:
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! 😊
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:
Add ScreenShots
Record
The text was updated successfully, but these errors were encountered: