mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-20 00:05:26 +02:00
16 lines
350 B
TypeScript
16 lines
350 B
TypeScript
import {SimpleDetailResponse} from "~/server-types"
|
|
import {client} from "~/constants/axios-client"
|
|
|
|
export default async function resendEmailVerificationCode(
|
|
email: string,
|
|
): Promise<SimpleDetailResponse> {
|
|
const {data} = await client.post(
|
|
`${import.meta.env.VITE_SERVER_BASE_URL}/v1/auth/resend-email`,
|
|
{
|
|
email,
|
|
},
|
|
)
|
|
|
|
return data
|
|
}
|