- Updated password hashing and verification functions to use bcryptjs for improved compatibility.
- Added a constant-time string comparison function to enhance security against timing attacks.
- Refactored JWT token generation to utilize environment variables for secret management.
- Adjusted user roles in registration and role selection components to align with new role definitions.
- Cleaned up unused imports and improved code organization across several files.
This change enhances security and maintains consistency in the authentication process.wd