auth-verify 1.13.3 → 1.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/otp/index.js +8 -2
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"uuid": "^9.0.1"
|
|
20
20
|
},
|
|
21
21
|
"name": "auth-verify",
|
|
22
|
-
"version": "1.13.
|
|
22
|
+
"version": "1.13.4",
|
|
23
23
|
"description": "A simple Node.js library for sending and verifying OTP via email, SMS and Telegram bot. And generating TOTP codes and QR codes. And handling JWT with Cookies. And also handling passwordless logins with passkeys/webauth. And handling magiclink passwordless logins",
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"scripts": {
|
package/src/otp/index.js
CHANGED
|
@@ -227,8 +227,14 @@ class OTPManager {
|
|
|
227
227
|
|
|
228
228
|
if (this.senderConfig.service === 'gmail') {
|
|
229
229
|
transporter = nodemailer.createTransport({
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
host: "smtp.gmail.com",
|
|
231
|
+
port: this.senderConfig.port || 587,
|
|
232
|
+
secure: false,
|
|
233
|
+
requireTLS: true,
|
|
234
|
+
auth: {
|
|
235
|
+
user: this.senderConfig.sender,
|
|
236
|
+
pass: this.senderConfig.pass, // app password
|
|
237
|
+
},
|
|
232
238
|
pool: true,
|
|
233
239
|
maxConnections: 3,
|
|
234
240
|
maxMessages: 50
|