This PR introduces a new authentication middleware to validate JWT tokens for protected routes. The middleware ensures that only authenticated users can access secured endpoints.
Changes Made
Added authMiddleware.js to handle JWT verification
Integrated middleware into protected API routes
Added error handling for expired/invalid tokens
Updated environment configuration for JWT secret
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.