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