Skip to main content

Send OTP

Once you have set up SMS details, you can use it to send SMS otp.

import { sendSMS } from "no-secreto";

const sms = sendSMS("+XXXXXXXXXX");

This will send an SMS otp to the given phone number and return true if the SMS was sent successfully.