Simple OTP by Email for embedding into OmniScripts.
This is a node.js app generating a one time passcode and sending by Email using nodemailer. The intent for this app is to be used in a Vlocity OmniScript for user acknowledgement of document reviews. Current support for app runtime is local and Heroku only.
Node version is specified but you may change from the package.json. Build artifacts are ignored by version control using .gitignore. OmniStudio tools are available in the omnistudio folder.
We assume that you have:
- Node.js and npm installed.
- a free Heroku account.
- the Heroku CLI.
- Add https://otp-by-email.herokuapp.com to the Salesforce Remote Site URLs.
# Clone this project onto your machine
git clone https://github.com/ThomasSmithIRE/otp_omniscript.git
# Change into the project
cd otp_omniscript/
# Install the dependencies
npm install
heroku local web
Your app should now be running on http://localhost:5000/.
Note: You need to deploy your local source code to Github before creating the Heroku app.
git add .
git commit -m "Added a Procfile."
heroku login
heroku create
git push heroku main
heroku open
Found a bug or have a question about this project? We'd love to hear from you!
- Browse to ThomasSmithIRE/otp_omniscript/issues
- Create a new issue
- Select the
[x] examples
category
See you there and thanks for helping to improve OTP by Email for everyone!