Node.js library for the Authsend API.
npm install authsend
First, you need to get an API key.
import { Authsend } from "authsend";
const authsend = new Authsend("sk_123456789");
Send your first verification email:
await authsend.emails.send({
to: "[email protected]",
from: "Authsend",
});
Verify the OTP sent in the verification email.
await authsend.verify.check({
id: "041a87ff-60be-4054-a96f-9bf0c7f0beaf",
code: "123456",
});
MIT License