Hey, I have this to create code,
const user = await listUsersByAccountInfo("public",{
email:updateDto.email
})
if(user.length > 0){
res.status(HttpStatus.CONFLICT).send("User already exists with the given mail")
}
const code = await createCode({email:updateDto.email, tenantId:"public"})
return res.status(HttpStatus.OK).send(code)
now i need code.userInputCode to be sent via email/sms , is there any function by which we can send it.
I found "sendEmail" function but do we need to import it from emailVerfication recipe or thirdpartyPasswordless recipe. Also it take TypeEmailVerificationEmailDeliveryInput as parameters , so what can be passed into it.