mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-20 08:15:26 +02:00
10 lines
260 B
TypeScript
10 lines
260 B
TypeScript
import {client} from "~/constants/axios-client"
|
|
|
|
export default async function checkIsDomainDisposable(
|
|
domain: string,
|
|
): Promise<boolean> {
|
|
const {data} = await client.get(`https://api.mailcheck.ai/domain/${domain}`)
|
|
|
|
return !data.mx || data.disposable
|
|
}
|