Skip to content

authsend/authsend-node

Repository files navigation

Authsend Node.js SDK

Node.js library for the Authsend API.

Install

npm install authsend

Setup

First, you need to get an API key.

import { Authsend } from "authsend";
const authsend = new Authsend("sk_123456789");

Usage

Send your first verification email:

await authsend.emails.send({
  to: "[email protected]",
  from: "Authsend",
});

Verify email address

Verify the OTP sent in the verification email.

await authsend.verify.check({
  id: "041a87ff-60be-4054-a96f-9bf0c7f0beaf",
  code: "123456",
});

License

MIT License