Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invite code instead of signup code in ketl email #58

Merged
merged 6 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"dependencies": {
"@big-whale-labs/constants": "^0.2.25",
"@big-whale-labs/ketl-email": "^0.2.3",
"@big-whale-labs/ketl-email": "^0.3.1",
"@big-whale-labs/seal-cred-email": "^1.1.2",
"@hapi/boom": "^10.0.0",
"@koa/cors": "^4.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/sendEmail.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as mg from 'nodemailer-mailgun-transport'
import { createTransport } from 'nodemailer'
import { inviteCode } from '@big-whale-labs/ketl-email'
import { generateTokenHtml as scEmail } from '@big-whale-labs/seal-cred-email'
import env from '@/helpers/env'
import ketlEmail from '@big-whale-labs/ketl-email'

const user = env.SMTP_USER
const pass = env.SMTP_PASS
Expand Down Expand Up @@ -41,7 +41,7 @@ export default async function ({
}) {
try {
const { html } = forKetl
? ketlEmail({ domain, secret })
? inviteCode({ domain, secret })
: scEmail({ domain, secret })

const from = forKetl ? 'Ketl' : 'SealCred'
Expand Down
24 changes: 16 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,25 @@ __metadata:
linkType: hard

"@big-whale-labs/constants@npm:^0.2.25":
version: 0.2.25
resolution: "@big-whale-labs/constants@npm:0.2.25"
checksum: 86fea79e8f94fcb1160178a3c7560e60f030bc564f384b220fe44012b8d899caa0309d91346aa3aea1bc4931e23dc479eb68258dacbd379fbeff602686c497da
version: 0.2.26
resolution: "@big-whale-labs/constants@npm:0.2.26"
checksum: 78cf8ad50032104184f8483d58ad0223dff3b4ab431192f833ca5053f9bfccd3785a16c8a74d1f508839b8a6d019718c5af48bc0d9e2fd5e6907731bc6cfc815
languageName: node
linkType: hard

"@big-whale-labs/ketl-email@npm:^0.2.3":
version: 0.2.3
resolution: "@big-whale-labs/ketl-email@npm:0.2.3"
"@big-whale-labs/ketl-email@npm:^0.3.1":
version: 0.3.1
resolution: "@big-whale-labs/ketl-email@npm:0.3.1"
dependencies:
dotenv: ^16.3.1
envalid: ^7.3.1
mjml: ^4.13.0
mjml-react: ^2.0.8
module-alias: ^2.2.2
react: ^18.2.0
react-dom: ^18.2.0
source-map-support: ^0.5.21
checksum: 196b325d03958bda4cffc0d9c3d150997c280b2881ded31c33aebcc59b1b3a5d94ef5e727f90b557963bfc43a703a5a9ef89772f81cfc870d493e4719b99ccc8
checksum: 6b99f253a4c01c489497cf553b2a81e299a27c0dde9256d1c95e08cd8fb541847a06519ca048bb467cf5feed80b62ddf626eeea98d34dbf91da0c52d79c47240
languageName: node
linkType: hard

Expand Down Expand Up @@ -1740,7 +1741,7 @@ __metadata:
dependencies:
"@big-whale-labs/bwl-eslint-backend": ^1.0.3
"@big-whale-labs/constants": ^0.2.25
"@big-whale-labs/ketl-email": ^0.2.3
"@big-whale-labs/ketl-email": ^0.3.1
"@big-whale-labs/prettier-config": ^1.1.3
"@big-whale-labs/seal-cred-email": ^1.1.2
"@hapi/boom": ^10.0.0
Expand Down Expand Up @@ -2681,6 +2682,13 @@ __metadata:
languageName: node
linkType: hard

"dotenv@npm:^16.3.1":
version: 16.3.1
resolution: "dotenv@npm:16.3.1"
checksum: 15d75e7279018f4bafd0ee9706593dd14455ddb71b3bcba9c52574460b7ccaf67d5cf8b2c08a5af1a9da6db36c956a04a1192b101ee102a3e0cf8817bbcf3dfd
languageName: node
linkType: hard

"duplexer@npm:~0.1.1":
version: 0.1.2
resolution: "duplexer@npm:0.1.2"
Expand Down
Loading