-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Labels
1 βBeginner friendlyBeginner friendlyGSSoC'25Part of GSSoC'25 programPart of GSSoC'25 programlevel 1Beginner/easyBeginner/easy
Description
π Description
The current authentication controller (authController.js) is functional but can be optimized for better readability, maintainability, and consistency without changing any existing logic or features.
β Expected Outcome
- Improve variable naming consistency (
existingβexistingUser, etc.). - Enhance input normalization logic for clarity.
- Add consistent
returnstatements for responses. - Clean up comments and error messages.
- Preserve full functionality of registration and login.
π‘ Proposed Solution
Refactor the file to:
- Use early returns for cleaner flow.
- Make helper functions more robust.
- Maintain all existing routes and functionality.
π Affected File
controllers/authController.js
Requested Tags
- GSSoC25, LEVEL 3
- Thank you
Metadata
Metadata
Assignees
Labels
1 βBeginner friendlyBeginner friendlyGSSoC'25Part of GSSoC'25 programPart of GSSoC'25 programlevel 1Beginner/easyBeginner/easy