Skip to main content

Verify OTP

import { verifyOTP } from "no-secreto";

const verify = verifyOTP("users@emailId.com", "OtpEnteredByUser");

This function returns user if the OTP is valid and false if it is not.