[PR #4860] [MERGED] chore: use zod v3 syntax #5623

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

📋 Pull Request Information

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

Base: canaryHead: himself65/2025/09/23/zod-2


📝 Commits (2)

📊 Changes

3 files changed (+9 additions, -10 deletions)

View changed files

📝 packages/better-auth/src/api/routes/email-verification.ts (+4 -1)
📝 packages/better-auth/src/api/routes/sign-up.ts (+1 -1)
📝 packages/better-auth/src/plugins/oidc-provider/index.ts (+4 -8)

📄 Description

Fixes: https://github.com/better-auth/better-auth/issues/4856


Summary by cubic

Updated validation schemas to Zod v3 syntax across email verification, sign-up, and the OIDC provider. Fixes email validation and replaces deprecated field descriptions for better compatibility.

  • Refactors
    • Replace z.email() with z.string().email() in sendVerificationEmail and signUpEmail routes.
    • Switch .meta(...) to .describe(...) for JWKS and metadata in the OIDC provider schema.

🔄 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/4860 **Author:** [@himself65](https://github.com/himself65) **Created:** 9/23/2025 **Status:** ✅ Merged **Merged:** 9/23/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2025/09/23/zod-2` --- ### 📝 Commits (2) - [`cd2b990`](https://github.com/better-auth/better-auth/commit/cd2b990be17e7b99de6a11469f9d3c0407124469) chore: use zod v3 syntax - [`891f761`](https://github.com/better-auth/better-auth/commit/891f7616826229f0a0c90d0a2692110888d5cb11) chore: use zod v3 syntax ### 📊 Changes **3 files changed** (+9 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/email-verification.ts` (+4 -1) 📝 `packages/better-auth/src/api/routes/sign-up.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/oidc-provider/index.ts` (+4 -8) </details> ### 📄 Description Fixes: https://github.com/better-auth/better-auth/issues/4856 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated validation schemas to Zod v3 syntax across email verification, sign-up, and the OIDC provider. Fixes email validation and replaces deprecated field descriptions for better compatibility. - **Refactors** - Replace z.email() with z.string().email() in sendVerificationEmail and signUpEmail routes. - Switch .meta(...) to .describe(...) for JWKS and metadata in the OIDC provider schema. <!-- 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:29:42 -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#5623