This repository help to verify phone number using sms/call OTP with nodejs.
- Node.js installed on the system.
- Create a free account at Tiniyo. [https://tiniyo.com]
- Open terminal.
- Clone the nodejs-otp-verification into your go path and change directory to cloned repository.
$ git clone "https://github.com/Akshat-vishwakarma/nodejs-otp-verification.git"
$ cd nodejs-otp-verification
$ npm install
- Create your Free TINIYO Account and grab your "API Key": https://www.tiniyo.com
- Make a new file ".env" and write your TINIYO API Key and Secret Key as-
AuthID=XXXXXXXXXXXXX
AuthSecretID=XXXXXXXXXXXXXXXXXXXX
- Save the ".env" file.
- Run the local node server in your console.
$ npm start
- Navigate to http://localhost:3001 to try it out!