Authbound’s public SDK packages are TypeScript-first and split by runtime. Server packages keep secret keys off the browser. UI packages handle wallet QR codes, deep links, status, and basic flow state.

Packages

PackageRuntimeUse it for
@authbound/nextjsNext.jsApp Router verification routes, middleware, React components, hooks, station route helpers, and styles.
@authbound/serverNode serversREST API client, verification creation, issuance, webhook signatures, signed results and result helpers (verifyResultToken, verifyClaimsDigest, meetsMinimumAge), Express, and Hono.
@authbound/reactBrowserReact provider, hooks, QR code, deep link button, verification wall, and station UI (StationEntry, StationEntryDisplay, StationOperatorConsole).
@authbound/vueBrowserVue plugin, composables, QR code, deep link button, verification wall, and station UI (StationEntry, StationEntryDisplay, StationOperatorConsole).
@authbound/nuxtNuxtNuxt module, auto-imports, verification and station routes (added automatically), route middleware.
@authbound/coreBrowser and NodeLow-level client, branded types, status subscriptions, link builders, policy types.
All packages require Node.js 18 or newer for Node-based builds and tooling.
PackageSupported framework versions
@authbound/serverExpress 4.18+, Hono 4+, or Next.js 14 through 16. Framework peers are optional.
@authbound/reactReact and React DOM 18.3 through 19.x.
@authbound/vueVue 3.5.34 through 3.x.
@authbound/nextjsNext.js 14 through 16 and React 18.3 through 19.x.
@authbound/nuxtNuxt 4 and Vue 3.5.34 through 3.x.

Start by stack

Server client

Use AuthboundClient for server-side API calls.
import { AuthboundClient } from "@authbound/server";

const authbound = new AuthboundClient({
  apiKey: process.env.AUTHBOUND_SECRET_KEY!,
  apiUrl: process.env.AUTHBOUND_API_URL!,
});

Policies

Use a built-in preset from PolicyPresets, or create your own with authbound.policies.create. See Policies.

React UI

Use AuthboundProvider once near the app root and render VerificationWall where the user should verify. For Vite React apps, use import.meta.env with the VITE_ prefix. Next.js apps should use @authbound/nextjs/client and NEXT_PUBLIC_* instead. See Verify with Next.js.
import {
  asPolicyId,
  AuthboundProvider,
  VerificationWall,
} from "@authbound/react";

const policyId = asPolicyId(import.meta.env.VITE_AUTHBOUND_POLICY_ID!);

export function Verify() {
  return (
    <AuthboundProvider
      publishableKey={import.meta.env.VITE_AUTHBOUND_PK!}
      gatewayUrl={import.meta.env.VITE_AUTHBOUND_API_URL}
    >
      <VerificationWall policyId={policyId} />
    </AuthboundProvider>
  );
}

Stations

Stations are for in-person verification, such as a QR code at a venue entrance. They’re enabled per organization; the SDK exports alone don’t turn them on. Nuxt adds the station routes automatically. In Next.js, add them yourself with the createStation*Route helpers from @authbound/nextjs/server. See Configure Next.js.

API URL

Set the API URL for your key’s mode explicitly: apiUrl on server clients and route helpers, gatewayUrl on browser providers. Without it, every package falls back to a built-in default host that doesn’t accept test keys. Keep the server and browser on the same URL.

Browser sessions

Browser SDKs authenticate with your publishable key and the per-verification client token, so your secret key stays on the server. By default, they also set a session cookie when a verification succeeds. Browser sessions covers session modes, several open tabs, time limits and proxies.

AuthboundClient API surface

AuthboundClient from @authbound/server has one namespace per API resource:
NamespaceMethodsUse for
verificationscreate, get, list, cancel, getStatus, getResult, verifyResultTokenVerification lifecycle, signed results, and signed result checks. Package exports also include verifyClaimsDigest and meetsMinimumAge.
policiescreate, list, get, archiveProject-scoped verification policies.
issuer.credentialDefinitionslist, get, create, createDraft, update, publish, archiveCredential definition lifecycle.
openId4Vc.issuancecreateOffer, list, get, update, cancel, revokeOpenID4VCI issuance sessions.
stationscreate, list, get, pause, resume, close, rotateDisplayToken, createOperatorGrant, revokeOperatorGrant, listVerifications, getVerification, listEvents, getDisplay, getVerificationDisclosureStation entry and operator flows.
webhooksverifySignatureWebhook signature verification. For the failure reason, use the standalone verifyWebhookSignatureDetailed export.
Use verifications.getStatus(verificationId, { clientToken, publishableKey }) when you need server-side status checks with browser credentials. Use verifications.getResult(verificationId) for signed, high-trust reconciliation. See Issue credentials for issuance guides and Verify overview for verification statuses and failure codes.

Status subscriptions

Framework packages subscribe to verification progress automatically. Custom UI can call client.subscribeToStatus on the client returned by createClient from @authbound/core. The SDK uses SSE at /v1/verifications/{id}/events/sse, with polling at /v1/verifications/{id}/status as fallback. Both use Authorization: Bearer <clientToken> and X-Authbound-Publishable-Key. The SSE client uses fetch so credentials stay in headers. Pass { expiresAt: verification.expiresAt } as the fourth argument to client.subscribeToStatus(verification.verificationId, verification.clientToken, onEvent, options). Polling stops at terminal status or that deadline; without an expiry, the default polling ceiling is five minutes. Polling intervals start at one second and increase to thirty seconds. A 503 realtime_unavailable response switches to polling when fallback is enabled. A local timeout is not a successful verification. Offer a restart and reconcile the result on your server.

Station UI

For enabled organizations, use StationEntry, StationEntryDisplay and StationOperatorConsole from the React or Vue package. The station UI guide explains token scopes and direct Gateway versus same-origin proxy mode.