Files
dance-lessons-coach/pkg
Gabriel Radureau 79c9313fab
Some checks failed
CI/CD Pipeline / CI Pipeline (push) Has been cancelled
CI/CD Pipeline / CI Pipeline (pull_request) Successful in 11m42s
🎯 refactor: implement unified authentication endpoint
- Unified login endpoint now supports both regular users and admin authentication
- Simplified API surface from 2 endpoints to 1 for authentication
- Maintains security separation internally (tries regular user first, then admin)
- Updated Swagger documentation to reflect unified authentication
- All existing functionality preserved with improved user experience

Benefits:
- Simpler API: One endpoint instead of /auth/login and /auth/admin/login
- Better UX: Users don't need to know if they're admin or regular user
- Backward Compatible: Existing admin functionality fully preserved
- Cleaner Architecture: Complexity hidden internally

Testing:
-  Admin authentication through unified endpoint
-  Regular user authentication through unified endpoint
-  Error handling for invalid credentials
-  All 25 BDD scenarios passing
-  All unit tests passing

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-04-07 00:57:30 +02:00
..