Skip to content

Conversation

clay-curry
Copy link

@clay-curry clay-curry commented Oct 18, 2025

What?

The existing guidance for email validation during authentication produces the below compiler warning:

'(params?: string | { abort?: boolean | undefined; pattern?: RegExp | undefined; error?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat> | undefined; message?: string | undefined; } | undefined): ZodString' is deprecated.

Why?

The warning traces to z.string.email() usage, which was deprecated in Zod 4 with commit 85928. See the official guidance for details on email validation.

How?

Fixes guidance.

@ijjk ijjk added the Documentation Related to Next.js' official documentation. label Oct 18, 2025
@ijjk
Copy link
Member

ijjk commented Oct 18, 2025

Allow CI Workflow Run

  • approve CI run for commit: cb5d7e4

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

1 similar comment
@ijjk
Copy link
Member

ijjk commented Oct 18, 2025

Allow CI Workflow Run

  • approve CI run for commit: cb5d7e4

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Related to Next.js' official documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants