Packages
| Package | Runtime | Use it for |
|---|---|---|
@authbound/nextjs | Next.js | App Router verification routes, middleware, React components, hooks, station route helpers, and styles. |
@authbound/server | Node servers | REST API client, verification creation, issuance, webhook signatures, signed results and result helpers (verifyResultToken, verifyClaimsDigest, meetsMinimumAge), Express, and Hono. |
@authbound/react | Browser | React provider, hooks, QR code, deep link button, verification wall, and station UI (StationEntry, StationEntryDisplay, StationOperatorConsole). |
@authbound/vue | Browser | Vue plugin, composables, QR code, deep link button, verification wall, and station UI (StationEntry, StationEntryDisplay, StationOperatorConsole). |
@authbound/nuxt | Nuxt | Nuxt module, auto-imports, verification and station routes (added automatically), route middleware. |
@authbound/core | Browser and Node | Low-level client, branded types, status subscriptions, link builders, policy types. |
| Package | Supported framework versions |
|---|---|
@authbound/server | Express 4.18+, Hono 4+, or Next.js 14 through 16. Framework peers are optional. |
@authbound/react | React and React DOM 18.3 through 19.x. |
@authbound/vue | Vue 3.5.34 through 3.x. |
@authbound/nextjs | Next.js 14 through 16 and React 18.3 through 19.x. |
@authbound/nuxt | Nuxt 4 and Vue 3.5.34 through 3.x. |
Start by stack
| Stack | Guide |
|---|---|
| Next.js App Router | Verify with Next.js |
| React SPA | Verify with React |
| Vue | Verify with Vue |
| Nuxt | Verify with Nuxt |
| Express | Verify with Express |
| Hono | Verify with Hono |
| Node issuance | Issue with Node.js |
Server client
UseAuthboundClient for server-side API calls.
Policies
Use a built-in preset fromPolicyPresets, or create your own with authbound.policies.create. See Policies.
React UI
UseAuthboundProvider 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.
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 thecreateStation*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:
| Namespace | Methods | Use for |
|---|---|---|
verifications | create, get, list, cancel, getStatus, getResult, verifyResultToken | Verification lifecycle, signed results, and signed result checks. Package exports also include verifyClaimsDigest and meetsMinimumAge. |
policies | create, list, get, archive | Project-scoped verification policies. |
issuer.credentialDefinitions | list, get, create, createDraft, update, publish, archive | Credential definition lifecycle. |
openId4Vc.issuance | createOffer, list, get, update, cancel, revoke | OpenID4VCI issuance sessions. |
stations | create, list, get, pause, resume, close, rotateDisplayToken, createOperatorGrant, revokeOperatorGrant, listVerifications, getVerification, listEvents, getDisplay, getVerificationDisclosure | Station entry and operator flows. |
webhooks | verifySignature | Webhook signature verification. For the failure reason, use the standalone verifyWebhookSignatureDetailed export. |
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 callclient.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, useStationEntry, StationEntryDisplay and StationOperatorConsole from the React or Vue package. The station UI guide explains token scopes and direct Gateway versus same-origin proxy mode.