domain.onVerified
DNS checks passed — the domain can send.
Fires when an emailkit.domains.verify() check comes back verified — the provider confirmed the DNS records and the domain can send. Flip its status so your app stops showing setup instructions.
hooks: {
domain: {
onVerified: async ({ domain }) => {
await prisma.sendingDomain.updateMany({
where: { domain: domain.domain },
data: { status: "verified" },
});
},
},
},
Payload
PropType
emailDriverstring
Type
stringdomainDomain
Type
Domaincontext?unknown
Type
unknown