11 Commits

Author SHA1 Message Date
Julien Froidefond
7d12a66c12 refactor: migrate authentication to NextAuth and clean up related services 2025-10-12 15:45:09 +02:00
Julien Froidefond
117ac243f5 refactor: review cookie code for auth 2025-08-28 12:07:35 +02:00
Julien Froidefond
565fde2808 refactor: no XHR for currentUser but backside 2025-08-25 21:47:15 +02:00
Julien Froidefond
abd0de9f12 feat: add logout functionality to navigation component
- Integrated logout feature in the navigation dropdown using authClient.
- Implemented toast notifications for successful logout and error handling.
- Redirected users to the login page post-logout for improved user experience.
2025-08-25 19:14:56 +02:00
Julien Froidefond
42217c1c13 feat: enhance user authentication and profile retrieval
- Updated GET handler in auth route to fetch user UUID from cookie using AuthService.
- Improved error handling for unauthenticated and non-existent users.
- Added team name retrieval for the user profile, with fallback handling.
- Refactored AuthClient to return detailed user information including team details.
- Enhanced navigation component to use a dropdown menu for user actions, improving UI/UX.
- Implemented loading state in UserContext to manage user info fetching.
2025-08-25 16:33:10 +02:00
Julien Froidefond
5c71ce1a54 refactor: update authentication flow and cookie management
- Changed COOKIE_NAME from "peakSkills_userId" to "session_token" for better clarity.
- Updated AuthClient to handle login and registration with new data structures.
- Enhanced AuthWrapper to manage user sessions and display appropriate messages.
- Added error handling in LoginForm and RegisterForm for better user feedback.
- Refactored user service methods to streamline user creation and verification processes.
2025-08-25 16:19:31 +02:00
Julien Froidefond
d575596c71 fix: login was KO by profile 2025-08-25 10:48:13 +02:00
Julien Froidefond
f4dcc89c11 refactor: Userservice 2025-08-24 16:44:31 +02:00
Julien Froidefond
90c2f25ec7 fix: update team shouldnot create new user 2025-08-22 12:15:36 +02:00
Julien Froidefond
578f0858e8 feat: secu migrate to user uuid 2025-08-21 13:54:13 +02:00
Julien Froidefond
45fb1148ae feat: enhance evaluation loading with cookie authentication
- Updated the GET method in the evaluations route to support user authentication via cookies, improving security and user experience.
- Added compatibility for legacy parameter-based authentication to ensure backward compatibility.
- Refactored the useEvaluation hook to load user profiles from cookies instead of localStorage, streamlining the authentication process.
- Introduced a new method in EvaluationService to retrieve user profiles by ID, enhancing data retrieval efficiency.
- Updated ApiClient to handle cookie-based requests for loading evaluations, ensuring proper session management.
2025-08-21 11:55:50 +02:00