This mini library allows you to send OTP SMS messages to any phone number. It builds on top of Express.js framework and D7networks SMS API with JWT.
D7NETWORKS_BEARER_TOKEN="Your_D7etworks_Secret_Token" JWTSECRET="Any_Secret_Text"
sends sms to a specific phone number. {"phoneNumber":"+9641234567890"}
Verifying the OTP code and sending an access token as a response. {"phoneNumber":"+9641234567890", "otp":"1234"}
You need an access token to get a protected content