AntiPattern
Credential Error Misclassification
credential-error-misclassification
Credential validation and login error handling get routed through NextAuth/Auth callbacks inconsistently, so invalid-password cases trigger the wrong error path (or bypass expected messages), breaking correct UX and authentication flow guarantees.