Commit Graph

8 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
e475c5b239 fix: no auth possible 2025-08-27 09:56:44 +02:00
Julien Froidefond
565fde2808 refactor: no XHR for currentUser but backside 2025-08-25 21:47:15 +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
6fba622003 refactor: revew all design of services, clients, deadcode, ... 2025-08-24 22:03:15 +02:00
Julien Froidefond
a4b680b092 refactor: update database setup and remove skills migration API
- Changed migration commands in DATABASE_SETUP.md to use `pnpm run sync-skills` and `pnpm run sync-teams`.
- Removed the skills migration API endpoint in route.ts, streamlining the migration process.
- Updated MIGRATION_UUID.md to reflect changes in migration steps and removed the old skills migration script.
- Added new sync scripts for skills and teams in package.json.
- Cleaned up init.sql by removing old teams data insertion and adjusted comments for clarity.
2025-08-21 15:21:36 +02:00
Julien Froidefond
578f0858e8 feat: secu migrate to user uuid 2025-08-21 13:54:13 +02:00
Julien Froidefond
e32e3b8bc0 refactor: remove ProfileForm and update loading state display
- Removed the ProfileForm component from HomePage, simplifying the UI during loading.
- Added a loading spinner and message to indicate redirection to the login page, enhancing user experience.
2025-08-21 12:00:44 +02:00