[PR #4864] [MERGED] chore: use zod v3 syntax #13872

Closed
opened 2026-04-13 09:11:28 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4864
Author: @jippi
Created: 9/23/2025
Status: Merged
Merged: 9/23/2025
Merged by: @himself65

Base: canaryHead: patch-2


📝 Commits (2)

  • 973d783 fix: use zod3 for email validation
  • df8a0fb chore: another zod v3 miss

📊 Changes

2 files changed (+2 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/api/routes/reset-password.ts (+1 -0)
📝 packages/better-auth/src/api/routes/update-user.ts (+1 -0)

📄 Description

Summary by cubic

Fixed email validation in the changeEmail endpoint by switching to Zod v3 syntax (z.string().email()). This ensures proper validation for newEmail and avoids runtime errors.


🔄 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/4864 **Author:** [@jippi](https://github.com/jippi) **Created:** 9/23/2025 **Status:** ✅ Merged **Merged:** 9/23/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `patch-2` --- ### 📝 Commits (2) - [`973d783`](https://github.com/better-auth/better-auth/commit/973d78330dd18c24ad7ab7698471503346ca3d16) fix: use zod3 for email validation - [`df8a0fb`](https://github.com/better-auth/better-auth/commit/df8a0fb64d98ed0852fd106dfd4de752ff8ce349) chore: another zod v3 miss ### 📊 Changes **2 files changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/reset-password.ts` (+1 -0) 📝 `packages/better-auth/src/api/routes/update-user.ts` (+1 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fixed email validation in the changeEmail endpoint by switching to Zod v3 syntax (z.string().email()). This ensures proper validation for newEmail and avoids runtime errors. <!-- 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-04-13 09:11:28 -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#13872