'use server' import { generateCaptcha, signCaptcha } from "@/lib/captcha" export interface CaptchaResponse { image: string hash: string } export async function getNewCaptcha(): Promise { const { text, data } = generateCaptcha() const hash = signCaptcha(text) return { image: data, hash } }