[PR #5972] chore: remove deprecated zod API #14600

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

Original Pull Request: https://github.com/better-auth/better-auth/pull/5972

State: closed
Merged: Yes


Summary by cubic

Switched the OAuth state schema from z.object(...).passthrough() to z.looseObject(...) to remove use of a deprecated Zod API. Behavior stays the same—unknown keys are still allowed; no functional changes to parseState.

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

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5972 **State:** closed **Merged:** Yes --- <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Switched the OAuth state schema from z.object(...).passthrough() to z.looseObject(...) to remove use of a deprecated Zod API. Behavior stays the same—unknown keys are still allowed; no functional changes to parseState. <sup>Written for commit fc69ad4e87d035794ea7831d212133d58f98caef. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:32:21 -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#14600