Before and After refactoring
Closed this issue · 1 comments
MAES-Pyramids commented
After:
1- Refactoring Authentication Controller
2- replace Controller methods with model instance methods
3- Implementing Global error handling middleware
MAES-Pyramids commented
Fix Point 1 by creating createAndSendToken function for duplicated code in authController middleware like login and signup