MAES-Pyramids/AIWonderArt-Project-SE

Before and After refactoring

Closed this issue · 1 comments

After:
1- Refactoring Authentication Controller
2- replace Controller methods with model instance methods
3- Implementing Global error handling middleware

Fix Point 1 by creating createAndSendToken function for duplicated code in authController middleware like login and signup