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

Jwt authentication backend #149

Merged

Conversation

Pulkit95700
Copy link
Contributor

Pull Request for WebMasterLog 💡

Issue Title: JWT Authenticator with Role based Authorization #122


Describe the add-ons or changes you've made 📃

Created full Project for JWT authentication

Directory Structure

  • images
    • contains the images for the Working.md file in base directory of the project
  • src
    • index.js
    • constants.js
    • app.js
    • utils
      • ApiError.js
      • ApiResponse.js
      • asyncHandler.js
    • controllers
      • user.controller.js
    • db
      • index.js
    • middlewares
      • auth.middleware.js
      • permit.middleware.js
    • models
      • user.model.js
    • routes
      • user.routes.js
    • .env
    • package.json
    • package-lock.json
    • Working.md

How Has This Been Tested? ⚙️

This API has undergone extensive testing using Postman, covering secure endpoints and ensuring all functions are bug-free. We've also conducted end-to-end logic testing to ensure smooth operation.

Checklist: ☑️

  • My code follows the Contributing Guidelines & Code of Conduct of this project.
  • This PR does not contain plagiarized content.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly wherever it was hard to understand.
  • My changes generate no new warnings.

Screenshots 📷

For more images you can view the Readme.md file in thr project.

Note to reviewers 📄

This api helps user to get a modern starting project for production use. This is a standard setup for any production level project. The different files are used to handle different functions. You can clone it to get started on your project quickly.

@Pulkit95700
Copy link
Contributor Author

@Avdhesh-Varshney Please check pr for the following issue.
Fix: Fixes #122

Copy link
Owner

@Avdhesh-Varshney Avdhesh-Varshney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Pulkit95700 Great Work.
But i require 1 screenshot out of these images. So, out of these images, convert 1 image into webp format and keeps outside the images directory.
And don't forget to update the README file OK.

@Avdhesh-Varshney Avdhesh-Varshney added the Requested Changes ⚙️ Some changes have been requested in this PR label May 17, 2024
Copy link

vercel bot commented May 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web-master-log ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 18, 2024 10:04am

@Pulkit95700
Copy link
Contributor Author

Hello @Avdhesh-Varshney, I have added an image in webp format. Also updated the README file in the Intermediate directory. You can check the changes.

Copy link
Owner

@Avdhesh-Varshney Avdhesh-Varshney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Pulkit95700 For further communication join discord server link.

Copy link
Owner

@Avdhesh-Varshney Avdhesh-Varshney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Pulkit95700 PR Approved 🎉

@Avdhesh-Varshney Avdhesh-Varshney added level2 Intermediate level issues/pull requests Approved ✔️ This PR is approved by the PR or, Mentors Node-JS 😎 These project are kept in Node-JS directory gssoc These issue/pull request will be considered for GSSOC'24 and removed Requested Changes ⚙️ Some changes have been requested in this PR labels May 18, 2024
@Avdhesh-Varshney Avdhesh-Varshney merged commit 5bd26bf into Avdhesh-Varshney:main May 18, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved ✔️ This PR is approved by the PR or, Mentors gssoc These issue/pull request will be considered for GSSOC'24 level2 Intermediate level issues/pull requests Node-JS 😎 These project are kept in Node-JS directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Project 📃: JWT Authenticator with Role based Authorization
2 participants