Migrate player auth API to new router#812
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #812 +/- ##
===========================================
- Coverage 98.53% 98.53% -0.01%
===========================================
Files 359 369 +10
Lines 18840 18850 +10
Branches 1764 1766 +2
===========================================
+ Hits 18564 18573 +9
- Misses 268 269 +1
Partials 8 8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Code Review - PR #812: Migrate player auth API to new routerOverall, this is a well-executed migration following the documented patterns in CLAUDE.md. The code is well-organized with proper separation of concerns. I found one legitimate improvement opportunity: 🟡 Code QualityEmail validation happens in handlers instead of schemas Currently, email format validation uses
Files affected:
Suggested fix: // Instead of:
email: z.string().optional().meta({ description: "..." })
// Use:
email: z.string().email().optional().meta({ description: "..." })This would make validation fail earlier and centralize all validation in schemas (following best practices). However, note that this was migrated as-is from the old service, so it's not a regression - just an opportunity for improvement. ✅ Everything Else Looks GoodWhat I verified:
No issues found in: security, performance, or test coverage. |
6de82af to
9a3f7ef
Compare
9a3f7ef to
976d9a9
Compare
No description provided.