Files
tonePage/tone-page-web/lib/api/verification/send.ts
2025-05-10 12:08:04 +08:00

15 lines
350 B
TypeScript

import fetcher from "../fetcher";
interface SendVerificationCodeParam {
targetType: 'phone' | 'email';
type: 'login';
phone?: string;
email?: string;
}
export const send = async (data: SendVerificationCodeParam) => {
return fetcher('/api/verification/send', {
method: 'POST',
body: JSON.stringify(data),
})
}