[PR #6017] [MERGED] chore: update zod email chaining #6386

Closed
opened 2026-03-13 12:57:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6017
Author: @bytaesu
Created: 11/16/2025
Status: Merged
Merged: 11/16/2025
Merged by: @Bekacru

Base: canaryHead: 2025-11-16/chore/update-zod-email


📝 Commits (1)

  • fc50c73 chore: update zod email chaining

📊 Changes

7 files changed (+11 additions, -14 deletions)

View changed files

📝 packages/better-auth/src/api/routes/email-verification.ts (+1 -1)
📝 packages/better-auth/src/api/routes/sign-in.ts (+1 -1)
📝 packages/better-auth/src/plugins/admin/admin.ts (+1 -1)
📝 packages/better-auth/src/plugins/email-otp/index.ts (+3 -3)
📝 packages/better-auth/src/plugins/magic-link/index.ts (+3 -6)
📝 packages/better-auth/src/plugins/organization/routes/crud-invites.ts (+1 -1)
📝 packages/better-auth/src/plugins/siwe/index.ts (+1 -1)

📄 Description

Reference: https://zod.dev/v4?id=top-level-string-formats


Summary by cubic

Switched email validation to Zod v4’s top-level z.email() across auth routes and plugins. Keeps behavior the same, improves clarity, and aligns with Zod v4.

  • Refactors
    • Replaced z.string().email() with z.email() in email-verification, sign-in, admin, email-otp, magic-link, organization invites, and SIWE.
    • Kept magic-link email field metadata while moving to z.email().

Written for commit fc50c73907. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/6017 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 11/16/2025 **Status:** ✅ Merged **Merged:** 11/16/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `2025-11-16/chore/update-zod-email` --- ### 📝 Commits (1) - [`fc50c73`](https://github.com/better-auth/better-auth/commit/fc50c73907394d3d7325074520616a558a6b0d3d) chore: update zod email chaining ### 📊 Changes **7 files changed** (+11 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/email-verification.ts` (+1 -1) 📝 `packages/better-auth/src/api/routes/sign-in.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/admin/admin.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/email-otp/index.ts` (+3 -3) 📝 `packages/better-auth/src/plugins/magic-link/index.ts` (+3 -6) 📝 `packages/better-auth/src/plugins/organization/routes/crud-invites.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/siwe/index.ts` (+1 -1) </details> ### 📄 Description Reference: https://zod.dev/v4?id=top-level-string-formats <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Switched email validation to Zod v4’s top-level z.email() across auth routes and plugins. Keeps behavior the same, improves clarity, and aligns with Zod v4. - **Refactors** - Replaced z.string().email() with z.email() in email-verification, sign-in, admin, email-otp, magic-link, organization invites, and SIWE. - Kept magic-link email field metadata while moving to z.email(). <sup>Written for commit fc50c73907394d3d7325074520616a558a6b0d3d. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:57:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#6386