Devmangrani / JobSewa

Our job portal is designed to bridge the gap between laborers, farmers, and employers in need of agricultural workers. In today's fast-paced world, finding reliable and skilled labor for agricultural tasks can be challenging.
https://job-sewa.vercel.app/
Apache License 2.0
6 stars 13 forks source link

Fix issues branch #28

Open techSaswata opened 5 hours ago

techSaswata commented 5 hours ago

Description:

This issue aims to address several key areas that require improvement within the repository. By focusing on code organization, security practices, and robust error handling, we can enhance the overall quality and maintainability of the project.

Code Structure Cleanup The current structure includes potentially redundant or disorganized files across different directories, such as components and services. To streamline development: Group related functionalities together (e.g., place all authentication-related files in a dedicated folder). Ensure clear separation of concerns across components and services for easier navigation and future scalability.

Secure Handling of Environment Variables Sensitive information such as the JWT_SECRET is being mishandled within the project. To prevent security vulnerabilities: Ensure that sensitive data is stored in a .env file and is ignored by version control through .gitignore. Avoid hardcoding secrets directly in the codebase, following security best practices.

Typo in JWT Secret Key There is a typo in the environment variable for the JWT token. It is currently spelled as JWT_SECREAT, but it should be JWT_SECRET. Correcting this will: Ensure consistency and prevent any issues with token generation and validation.

vercel[bot] commented 5 hours ago

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

Name Status Preview Comments Updated (UTC)
job-sewa ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 21, 2024 6:59pm