The AbuseZero API is in public beta. Breaking changes are announced two weeks in advance.
AbuseZero

Node.js

The official AbuseZero SDK for Node.js, Bun and Deno.

The Node.js SDK is fully typed. Hover over the code below to see the types.

Installation

npm install @abusezero/node

Usage

import {  } from '@abusezero/node';

const  = new ();

const  = await ..({
  : 'signup',
  : { : 'jane@example.com' },
});

.decision;
Check.decision: Decision

Configuration

Pass options as the second argument to the constructor.

const abusezero = new AbuseZero(process.env.ABUSEZERO_API_KEY, {
  timeout: 5000,
  failOpen: 'review',
});

Prop

Type

Failing open

If AbuseZero can't be reached within timeout, the SDK returns a synthetic check with the failOpen decision instead of throwing. Your sign-up flow keeps working during an outage.

How is this guide?

Edit on GitHub

Last updated on

On this page