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

Implement Authentication in Post Routes #23

Open
NeyuD96155 opened this issue Apr 10, 2024 · 0 comments
Open

Implement Authentication in Post Routes #23

NeyuD96155 opened this issue Apr 10, 2024 · 0 comments

Comments

@NeyuD96155
Copy link
Owner

Problem:
The current routes for creating, updating, and deleting posts do not require authentication, allowing anyone to perform these actions.

Proposed Change:

  • Implement a JWT-based authentication middleware.
  • Apply this middleware to the POST, PATCH, and DELETE routes for posts to ensure that only authenticated users can make these requests.

Expected Outcome:
Increased security by ensuring that only logged-in users can create, update, or delete posts.

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

No branches or pull requests

1 participant