Skip to content

[Bug]: Zod validation error #241

@anandrajsingh

Description

@anandrajsingh

Sandbox ID or Build ID

No response

Environment

Ubuntu 24.04

Timestamp of the issue

2026-02-14 05:42:58 UTC

Frequency

Happens every time

Expected behavior

Authentication should work on local also, without zod validation error

Actual behavior

Can't verify email in local setup as zod schema expects a proper domain.

Issue reproduction

After signup, you recieve email to verify email

Additional context

const confirmSchema = z.object({
token_hash: z.string().min(1),
type: OtpTypeSchema,
next: z.httpUrl(),
})

The above code is from /api/auth/confirm route, same is in the /confirm page which uses ConfirmEmailInputSchema from auth.model.ts

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions