© 2026 Hedgehog Software, LLC
type ErrorTypes = Partial< Record< keyof typeof authClient.$ERROR_CODES, { field?: keyof z.infer<typeof formSchema> | "root"; message: string; } > >; const errorMap: ErrorTypes = { USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: { field: "email", message: "Email already exists", }, INVALID_PASSWORD: { field: "password", message: "Password does not meet requirements", }, };
USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL
$ERROR_CODES