devdev4117
05/05/2023, 8:27 AMemailDelivery: {
override: (originalImplementation) => {
return {
...originalImplementation,
service: new EmailVerificationSMTPService({
smtpSettings,
}),
sendEmail: async function (input) {
if (input.type === 'PASSWORD_RESET') {
// You can change the path, domain of the reset password link,
// or even deep link it to your mobile app
...
rp_st
05/05/2023, 10:17 AMrp_st
05/05/2023, 10:18 AMdevdev4117
05/08/2023, 4:16 AMsendEmail: async function (input) {
if (input.type === 'PASSWORD_RESET') {
console.log(input);
// You can change the path, domain of the reset password link,
// or even deep link it to your mobile app
return originalImplementation.sendEmail({
...input,
service: new SMTPService({
smtpSettings,
}),
devdev4117
05/08/2023, 4:17 AMrp_st
05/08/2023, 5:56 AMdevdev4117
05/09/2023, 5:07 AMrp_st
05/09/2023, 5:52 AMdevdev4117
05/09/2023, 11:24 AMrp_st
05/09/2023, 11:25 AMdevdev4117
05/09/2023, 11:26 AMdevdev4117
05/09/2023, 11:26 AMdevdev4117
05/09/2023, 11:27 AMrp_st
05/09/2023, 11:28 AMrp_st
05/09/2023, 11:28 AMdevdev4117
05/09/2023, 11:28 AMsendEmail: async function (input) {
if (input.type === 'PASSWORD_RESET') {
console.log(input);
// You can change the path, domain of the reset password link,
// or even deep link it to your mobile app
return originalImplementation.sendEmail({
...input,
service: new SMTPService({
smtpSettings,
}),
passwordResetLink:
input.passwordResetLink.replace(
// This is: `${websiteDomain}${websiteBasePath}/reset-password`
`${process.env.WEBSITE_DOMAIN}/reset-password`,
`${process.env.WEBSITE_DOMAIN}/reset-password`
),
});
}
return originalImplementation.sendEmail(input);
},
here is the entire call for sendEmaildevdev4117
05/09/2023, 11:28 AMrp_st
05/09/2023, 11:28 AMrp_st
05/09/2023, 11:29 AMdevdev4117
05/09/2023, 11:29 AMrp_st
05/09/2023, 11:30 AMdevdev4117
05/09/2023, 11:30 AMrp_st
05/09/2023, 11:32 AMEmailPassword.init({
emailDelivery: {
service: new SMTPService({
smtpSettings
}),
override: (oI) => {
return {
...oI,
sendEmail: async function (input) {
// TODO..
}
}
}
}
})
devdev4117
05/09/2023, 11:42 AMrp_st
05/09/2023, 11:43 AMrp_st
05/09/2023, 11:43 AMdevdev4117
05/09/2023, 4:34 PMrecipeList: [
EmailPassword.init({
override: {
emailDelivery: {
service: new SMTPService({
config: {
host: 'stmp.gmail.com',
authUsername: process.env.SMTP_USERNAME, // this is optional. In case not given, from.email will be used
password: process.env.SMTP_PASSWORD,
port: 465,
from: {
name: process.env.SMTP_USERNAME,
email: process.env.SMTP_USERNAME,
},
secure: true,
},
}),
I get the following errorrp_st
05/09/2023, 4:34 PMdevdev4117
05/09/2023, 4:35 PMrp_st
05/09/2023, 4:35 PM