This pull request improves the application's authentication flow by removing redundant client-side logic, adding Firebase validation, and enhancing Redux state management. Additionally, it re-enables React.StrictMode and optimizes the development environment with Redux devTools.
Changes
Client-Side Authentication Cleanup
Removed the redundant client-side authentication function from userController.js.
Firebase Integration
Added Firebase validation to loginUser in authService.js.
Redux State Management
Implemented and exported a new reducer setUser in authService.js.
Integrated necessary hooks and setUser to handle Redux state management based on the local storage user in App.js.
Component Refactoring
Removed rerouting logic and redundant hooks from Dashboard.jsx.
Removed rerouting and redundant hooks from Login.jsx.
Removed rerouting and redundant hooks from Register.jsx.
Environment Optimization
Re-enabled React.StrictMode in index.js.
Implemented devTools setting in the development environment in store.js.
Additional Information
These changes enhance the authentication flow and state management in the application, making it more efficient and secure.
Re-enabling React.StrictMode helps identify potential issues during development, while the devTools setting optimizes the developer experience.
Summary
This pull request improves the application's authentication flow by removing redundant client-side logic, adding Firebase validation, and enhancing Redux state management. Additionally, it re-enables React.StrictMode and optimizes the development environment with Redux devTools.
Changes
Client-Side Authentication Cleanup
userController.js
.Firebase Integration
loginUser
inauthService.js
.Redux State Management
setUser
inauthService.js
.setUser
to handle Redux state management based on the local storageuser
inApp.js
.Component Refactoring
Dashboard.jsx
.Login.jsx
.Register.jsx
.Environment Optimization
index.js
.devTools
setting in the development environment instore.js
.Additional Information
devTools
setting optimizes the developer experience.