Files
shopify-react-editor-template/app/api/account/recover/route.ts
T
2026-08-09 16:00:10 -04:00

11 lines
306 B
TypeScript

import { recoverPassword } from '@/services/shopify/customer';
export async function POST(req: Request) {
const { email } = await req.json();
if (email) await recoverPassword(email);
// Always the same response, so the form can't reveal who has an account.
return Response.json({ ok: true });
}