Skip to content

fix(auth): correct OTP verification error message and status code#175

Open
Aditya30ag wants to merge 1 commit into
0rigin-c0de:mainfrom
Aditya30ag:fix/otp-verification-status-message
Open

fix(auth): correct OTP verification error message and status code#175
Aditya30ag wants to merge 1 commit into
0rigin-c0de:mainfrom
Aditya30ag:fix/otp-verification-status-message

Conversation

@Aditya30ag
Copy link
Copy Markdown

@Aditya30ag Aditya30ag commented May 25, 2026

Summary

This PR fixes the OTP verification error response in the authentication route.

Changes Made

  • Corrected typo:

    • "incorrect passowrd""incorrect OTP"
  • Replaced misleading error message:

    • Clarified that the validation failure is related to OTP verification.
  • Updated non-standard HTTP status code:

    • Replaced 432 with standard 401 Unauthorized.

Updated Response

return res.status(401).json({
  error: "incorrect OTP",
  status: 401,
});

#174

@Aditya30ag Aditya30ag requested a review from 0rigin-c0de as a code owner May 25, 2026 17:36
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 25, 2026

@Aditya30ag is attempting to deploy a commit to the Sunil Kumar's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Aditya30ag
Copy link
Copy Markdown
Author

Hello @0rigin-c0de sir please have a look into this PR
also please add the GSSOC tag

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