Skip to content

better-auth: webhook plugin error with zod v4 #245

@pradel

Description

@pradel

When using the webhooks plugin with better-auth and zod v4 it throws ERROR [Better Auth]: Failed to parse event: TypeError: Cannot read properties of undefined (reading '_zod') when parsing the webhook.
Works fine with zod v3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions