Repository navigation
flexhostmail
Pre-releaseFlexHostMail v0.2.0-beta
Overview
FlexHostMail is a Node.js package designed for secure email-based OTP (One-Time Password) verification systems. In this beta release, we introduce new functionalities and improvements to enhance your OTP implementation.
New Features
-
Configuration Enhancement: Now easily configure FlexHostMail with your Mailgun API key, Mailgun domain, Redis host, and Redis password using the
configFHMfunction. -
Send OTPs: Utilize the
sendOtpfunction to seamlessly send OTPs to users via email. This function returns the generated OTP for further processing. -
Verify OTPs: Verify user-provided OTPs with the
verifyOtpfunction, ensuring a secure and reliable OTP verification process. -
Server Initialization: The
startFHMfunction initializes the FlexHostMail framework, allowing you to kickstart your OTP verification server.
Getting Started
-
Install FlexHostMail:
npm install flexhostmail@0.2.0-beta -
Configure FlexHostMail: Use the
configFHMfunction to set up your Mailgun and Redis parameters. -
Start the Server: Initialize the FlexHostMail framework with
startFHM. -
Send and Verify OTPs: Employ
sendOtpto dispatch OTPs andverifyOtpto validate user-provided OTPs.
Please note that this is a beta release, and we welcome your feedback to improve and enhance FlexHostMail for future versions.
We appreciate your support and look forward to your valuable contributions and feedback.
Happy coding!