Skip to content

Commit c8a27f9

Browse files
committed
fix: missing auth config transport mail
1 parent 22ff2ce commit c8a27f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/config/email.ts

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ class EmailProvider {
4242
private setMailConfig = (): nodemailer.SentMessageInfo => {
4343
const configTransport: nodemailer.SentMessageInfo = {
4444
service: MAIL_DRIVER,
45+
auth: {
46+
user: '',
47+
},
4548
}
4649

4750
// Use Google OAuth
@@ -61,6 +64,7 @@ class EmailProvider {
6164
return result
6265
}
6366

67+
configTransport.auth.user = MAIL_USERNAME
6468
configTransport.auth.type = MAIL_AUTH_TYPE
6569
configTransport.auth.clientId = OAUTH_CLIENT_ID
6670
configTransport.auth.clientSecret = OAUTH_CLIENT_SECRET

0 commit comments

Comments
 (0)