Skip to content

feat(shared): Add strict Zod type refinements for email fields - #207

Open
Daksh7785 wants to merge 2 commits into
Dharm3112:mainfrom
Daksh7785:feat/add-strict-zod-type-refinements-for-email-fields
Open

feat(shared): Add strict Zod type refinements for email fields#207
Daksh7785 wants to merge 2 commits into
Dharm3112:mainfrom
Daksh7785:feat/add-strict-zod-type-refinements-for-email-fields

Conversation

@Daksh7785

Copy link
Copy Markdown

What does this PR do?

This Pull Request introduces strict Zod type refinements (.trim().toLowerCase()) to the email fields within packages/shared/src/schema.ts (specifically for insertWaitlistSchema and upgradeAuthSchema).

Why is this necessary?

As per Issue #2, the email fields were only using .email(). Adding .trim().toLowerCase() prevents common user input errors (like trailing spaces or mixed casing) from causing validation failures or duplicate account creations in the database, resulting in a significantly more robust authentication and waitlist flow.

How was this verified?

  • Type checking passed (npx tsc --noEmit inside packages/shared).
  • Verified Zod schema chaining syntax is correct.

Thank you for reviewing my PR! Let me know if any changes are required, I am happy to accept constructive feedback as per our community Code of Conduct.

@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Dharm3112's projects Team on Vercel.

A member of the Team first needs to authorize it.

@netlify

netlify Bot commented Jul 19, 2026

Copy link
Copy Markdown

👷 Deploy request for intellicircle pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 5fc7273

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