Skip to content

harden auth email validation#223

Open
saurabhhhcodes wants to merge 1 commit into
chthonn:mainfrom
saurabhhhcodes:codex/auth-email-validation-hardening
Open

harden auth email validation#223
saurabhhhcodes wants to merge 1 commit into
chthonn:mainfrom
saurabhhhcodes:codex/auth-email-validation-hardening

Conversation

@saurabhhhcodes

Copy link
Copy Markdown

Summary

  • Normalize and validate auth email inputs before they reach MongoDB queries
  • Reject malformed email payloads in signup, verify, resend-OTP, and signin flows
  • Trim the service-layer lookup too, so the query path stays safe even if future callers pass padded input

Validation

  • git diff --check
  • node --check server/src/routes/auth.js
  • node --check server/src/services/userService.js
  • npm run test:auth:unit in server

@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Someone 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.

@saurabhhhcodes saurabhhhcodes changed the title [codex] harden auth email validation harden auth email validation Jun 13, 2026
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