(email: string, token: string)
| 15 | ) {} |
| 16 | |
| 17 | async sendConfirmationEmail(email: string, token: string) { |
| 18 | const confirmUrl = `https://${this.configService.mailDomain}/auth/confirm?token=${token}`; |
| 19 | |
| 20 | await this.mailerService.sendMail({ |
| 21 | to: email, |
| 22 | subject: 'Confirm Your Email', |
| 23 | template: './confirmation', |
| 24 | context: { confirmUrl }, // Data for template |
| 25 | }); |
| 26 | } |
| 27 | |
| 28 | async sendPasswordResetEmail(user: User, token: string) { |
| 29 | const frontendUrl = this.configService.frontendUrl; |
no outgoing calls
no test coverage detected