Skip to main content

Verify OTP

You can verify the OTP sent to your mobile number by using the following way:

import { verifySMS } from "no-secreto";

const verify = await verifySMS("+XXXXXXXXXX", "OTP");

This will return true if the OTP is valid.