Cracking the client gets them nothing.

Auth, licensing and server-side logic for desktop apps and plugins, set up and audited by your AI agent. Payloads and calls to your backend are released only after a signed check.

Start free
$ npx authfence mcp add

Free up to 10 monthly active users. No revenue cut on any plan.

Audit of lumen-reverb run by your agent over MCP

Tool calls

  • create_app lumen-reverb, test mode
  • create_role Buyer, beta channel
  • issue_key pro: export, presets, 30 days
  • audit_setup 3 findings

3 findings 1 high, 1 medium, 1 low

  • High

    Licence is checked only in the client

    src/export.ts:41

    Anyone can patch the app and set isPro to true. Move the export to your backend behind a verified call, and use the result it returns.

    - if (user.isPro) exportMix(mix);
    + const file = await af.call("export", mix);
    + await save(file);
  • Medium

    Seller key has no IP allowlist

    API keys

audit report signed, ed25519 verified af_pub_3f9e2c

What the server holds, a crack can’t unlock.

Payloads are sent after a signed check, and verified calls run in your own backend. Code you ship inside the app can still be patched, and a payload a customer has received can be copied.

What the app asks forPaying userPatched client
Entitlement checkPaying user: valid, reply signed by the serverPatched client: check removed from the client, no reply to show
Payload presetsPaying user: 48 KB delivered after the checkPatched client: nothing: the server never sent it
Verified call render_preset()Paying user: result returned, code stays on the serverPatched client: refused, no signed assertion
Discord rolePaying user: Pro role keptPatched client: no role

every reply above is signed with ed25519 af_pub_3f9e2c

Nothing goes live until the audit passes.

The MCP audits your build, signed replies, backend endpoints and webhooks, plus RLS or Firebase rules if you use them. Required checks block live mode until they pass, and each finding names the file and the fix.

Features you chose not to use are marked "not used", never failed.

How the audit works
Security audit Go-live blocked: 2 required checks fail
  • High

    Licence is checked only in the client

    src/export.ts:41

    Anyone can patch the app and set isPro to true. Move the export to your backend behind a verified call, and use the result it returns.

    - if (user.isPro) exportMix(mix);
    + const file = await af.call("export", mix);
    + await save(file);
  • Medium

    Seller key has no IP allowlist

    API keys

  • Low

    v2.3.0 can still sign in after v2.4 shipped

    Releases

  • High

    Secret key found in the shipped build

    dist/app.asar

Access follows the sale, from checkout to refund.

Keep Stripe, Polar, Lemon Squeezy, Shopify, Gumroad, Sell.app or Komerza. Their webhooks give and remove access, and a refund ends it in your app and in Discord.

  1. Checkout paid

    14:02:09

    Stripe, invoice.paid

  2. Entitlement granted

    14:02:11

    pro, export, 30 days

  3. Licence checked

    14:03:40

    device 1 of 3, reply signed

  4. Discord role added

    next

    Pro role on 2 servers

  5. Refund

    if refunded

    Stripe, charge.refunded

  6. Access removed

    same minute

    Entitlement and role removed

Keys, email accounts, or both.

You choose how customers sign in. Added time, bans and renewals work the same on a key or an account. Connect Supabase or Firebase if your users live there. Moving from KeyAuth? Import the CSV with a dry run first.

authfence import keyauth ./users.csv --dry-run dry run: 412 licences mapped, 0 conflicts, nothing written
KeyCustomerPlanDevicesStatusExpiresLast check
LUMEN-7Q4M-9XKD-X2PKsam@northbeat.audioPro2 / 3Active12 Dec 20264 min ago
LUMEN-2H8C-QW71-MV0Eren@tapehouse.studioPro1 / 3Expiring28 Nov 20261 h ago
LUMEN-TRL-88FA-01KCj.ortega@fastmail.comTrial1 / 1Trial1 Dec 2026yesterday
LUMEN-55ZB-7Y3N-RR4Dresale-shop@proton.mePro3 / 3Bannedn/a6 d ago

Sample data.

Free up to 10 monthly active users. No revenue cut, at any size.