Skip to content

Commit

Permalink
removed apikeys from repo
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlwn123 committed May 7, 2022
1 parent 2e572cb commit 6d1b0f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/mailgun/mailgun.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const mailgun = require("mailgun-js");
const DOMAIN = "sandboxb488ae9cba904e73936d81f35b2ee781.mailgun.org";
const mg = mailgun({
apiKey: "d05c4d067d69c940d3dac93769dd87a2-fe066263-f6136332",
domain: DOMAIN
apiKey: process.env.MAILGUN_API_KEY,
domain: DOMAIN,
});

const sendInvite = async (newUser, email, familyName, inviteLink) => {
const data = {
from: "Mailgun Sandbox <postmaster@sandboxb488ae9cba904e73936d81f35b2ee781.mailgun.org>",
from: `Family BTC Wallet <postmaster@${DOMAIN}`,
to: email,
subject: "Welcome to BTC Family!",
text:
Expand Down
3 changes: 3 additions & 0 deletions sample.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GOOGLE_APPLICATION_CREDENTIALS=
MAILGUN_API_KEY=
MAILGUN_DOMAIN=

0 comments on commit 6d1b0f8

Please sign in to comment.