Variable: signInInputSchema
const signInInputSchema: ZodDiscriminatedUnion<[ZodObject<{
email: ZodString;
method: ZodLiteral<"emailPassword">;
password: ZodString;
}, $strip>, ZodObject<{
email: ZodString;
method: ZodLiteral<"magicLink">;
}, $strip>], "method">;Defined in: shared/auth/schemas.ts:39
Tagged unions for the sign-in / sign-up form callbacks. The method
discriminant makes the active auth path explicit at the type level, so
consumers can branch exhaustively (e.g. ts-pattern
match(input).with({ method: "emailPassword" }, …).exhaustive()). The forms
validate the per-path schema and attach method on submit; these schemas
also validate the tagged payload server-side. When the forms wire up
email-OTP, add an emailOtpRequestSchema.extend({ method: z.literal("emailOtp") })
variant here.