From 49257736b9fb065f8c698ad167209a1c1a3593a2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 24 Aug 2022 11:30:54 +0200 Subject: [PATCH] Added nodemailer for sending mail 2fa https://www.npmjs.com/package/nodemailer --- package.json | 2 ++ yarn.lock | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/package.json b/package.json index 9de26ef..7ece3c8 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "@nestjs/typeorm": "^9.0.0", "argon2": "^0.28.7", "jsonwebtoken": "^8.5.1", + "nodemailer": "^6.7.8", "passport": "^0.6.0", "passport-jwt": "^4.0.0", "passport-local": "^1.0.0", @@ -49,6 +50,7 @@ "@types/jest": "^28.1.6", "@types/jsonwebtoken": "^8.5.8", "@types/node": "^18.6.5", + "@types/nodemailer": "^6.4.5", "@types/passport-jwt": "^3.0.6", "@types/passport-local": "^1.0.34", "@types/qrcode": "^1.5.0", diff --git a/yarn.lock b/yarn.lock index e7ee3e5..fd82a06 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1105,6 +1105,13 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.7.11.tgz#486e72cfccde88da24e1f23ff1b7d8bfb64e6250" integrity sha512-KZhFpSLlmK/sdocfSAjqPETTMd0ug6HIMIAwkwUpU79olnZdQtMxpQP+G1wDzCH7na+FltSIhbaZuKdwZ8RDrw== +"@types/nodemailer@^6.4.5": + version "6.4.5" + resolved "https://registry.yarnpkg.com/@types/nodemailer/-/nodemailer-6.4.5.tgz#09011ac73259245475d1688e4ba101860567dc39" + integrity sha512-zuP3nBRQHI6M2PkXnGGy1Ww4VB+MyYHGgnfV2T+JR9KLkeWqPJuyVUgLpKXuFnA/b7pZaIDFh2sV4759B7jK1g== + dependencies: + "@types/node" "*" + "@types/parse-json@^4.0.0": version "4.0.0" resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" @@ -4270,6 +4277,11 @@ node-releases@^2.0.5: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.5.tgz#280ed5bc3eba0d96ce44897d8aee478bfb3d9666" integrity sha512-U9h1NLROZTq9uE1SNffn6WuPDg8icmi3ns4rEl/oTfIle4iLjTliCzgTsbaIFMq/Xn078/lfY/BL0GWZ+psK4Q== +nodemailer@^6.7.8: + version "6.7.8" + resolved "https://registry.yarnpkg.com/nodemailer/-/nodemailer-6.7.8.tgz#9f1af9911314960c0b889079e1754e8d9e3f740a" + integrity sha512-2zaTFGqZixVmTxpJRCFC+Vk5eGRd/fYtvIR+dl5u9QXLTQWGIf48x/JXvo58g9sa0bU6To04XUv554Paykum3g== + nopt@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/nopt/-/nopt-5.0.0.tgz#530942bb58a512fccafe53fe210f13a25355dc88"