# Integrate at sign-up

> Where to call AntiBurner in a sign-up or free-trial flow, how to treat each action, and how to store the normalized address to stop repeat trials.

Source: https://antiburner.com/docs/integrate-signup  
Markdown: https://antiburner.com/docs/integrate-signup.md  
Section: Get started

Check the address on the server, before you create the account or send a verification email.

```typescript title="signup.ts"
import { AntiBurner } from "antiburner";

const ab = new AntiBurner({ apiKey: process.env.ANTIBURNER_KEY! });

export async function signUp(email: string) {
  const r = await ab.check(email); // ≤ 300 ms, never throws
  if (r.action === "block") return { error: "Please use a permanent email address." };

  const existing = await db.users.findOne({ email_canonical: r.normalized_email });
  if (existing) return { error: "You already have an account." };

  const user = await db.users.insert({ email, email_canonical: r.normalized_email });
  if (r.action === "challenge") await requireEmailVerification(user);
  return { user };
}
```

## Existing users

Only check new sign-ups. People who already have an account keep signing in, even if their domain is listed later.

## Typos

When `signals.did_you_mean` is set (`jane@gmial.com` → `jane@gmail.com`), offer the correction before rejecting.

## Privacy relays

`relay` addresses (Apple Hide My Email, DuckDuckGo, Firefox Relay, SimpleLogin, Proton Pass, addy.io) belong to real people who protect their inbox. Allow them. If you limit trials, the relay address itself is still unique per person and site.
