Luca
08/16/2022, 2:54 PMrp_st
08/16/2022, 2:55 PMrp_st
08/16/2022, 2:56 PMrp_st
08/16/2022, 2:57 PMrp_st
08/16/2022, 2:57 PMLuca
08/16/2022, 2:58 PMrp_st
08/16/2022, 2:58 PMrp_st
08/16/2022, 2:58 PMrp_st
08/16/2022, 2:58 PMLuca
08/16/2022, 2:59 PMLuca
08/16/2022, 2:59 PMrp_st
08/16/2022, 3:05 PMts
EmailPassword.init({
emailDelivery: {
override: (oI) => {
return {
...oI,
sendEmail: async function(input) {
// default email templates are here: https://github.com/supertokens/email-sms-templates
if (input.type === "PASSWORD_RESET") {
// send password reset email.
} else {
// send email verification email
}
}
}
}
}
})
Essentially you will have to send the emails yourself and this provides maximum flexibility. You can also open an issue on our github about missing username field in smtp settings if you like.Luca
08/16/2022, 3:07 PMrp_st
08/16/2022, 3:08 PMLuca
08/16/2022, 3:08 PMrp_st
08/16/2022, 3:08 PM