Skip to content

Conversation

@AnujG-05
Copy link

Description

This pull request improves the authentication error handling during login by standardizing the response for invalid credentials. When a user provides an incorrect username or password, the API now returns a clear and consistent 401 (Unauthorized) response with a generic error message.

Fixes

Fixes inconsistent error handling for invalid login attempts where no clear feedback was provided to the client.

Checklist

  • Code follows project's style guidelines.
  • Changes are documented appropriately.

Notes

Returning a 401 status for invalid credentials aligns with HTTP authentication semantics and allows frontend clients to reliably display user-friendly error messages without exposing sensitive authentication details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant