This is a simple command-line based OTP verification system built with Node.js, using MSG91's Flow API to send OTPs to Indian mobile numbers. It supports OTP generation, sending, verification, and resend logic.
- OTP generation (6-digit)
- SMS delivery via MSG91
- OTP resend option
- CLI-based input for phone and OTP
- Environment variable management with
.env
📋 Example Usage
📱 Enter your phone number (with +91 or 10-digit): 9876543210 📩 OTP sent to +919876543210 🔐 Enter OTP or type 'resend': 123456 ✅ OTP Verified!
✨ Acknowledgments MSG91 – for providing the Flow-based messaging API.
- Clone the repo
git clone https://github.com/Amith2410/otp-app.git
cd otp-app
npm install
FLOW_ID=your_msg91_flow_id
AUTH_KEY=your_msg91_auth_key
node otp.js

