While working on my Meteor app, I am sending email verifications and also uploading the app to GitHub. The following code snippet is a part of my setup:
if (Meteor.isServer) {
// This code only runs on the server
Meteor.startup(function () {
// code to run on server at startup
process.env.MAIL_URL = "smtp://" +
encodeURIComponent("myUsernameIsHere") + ":" +
encodeURIComponent("myPasswordIsHere") + '@' +
encodeURIComponent("smtp.gmail.com") + ":" + 465;
..
..
..
}
I'm concerned about keeping my username and password secure so that they are not exposed on my public GitHub account. Is there a way to safely handle this in the code?
Thank you