The Hono app gives your backend everything the browser SDKs need: starting verifications, setting a session cookie when one succeeds, and receiving webhooks. Pair it with the React or Vue SDK on the frontend, served from the same origin.
1

Install

pnpm add @authbound/server hono @hono/node-server
2

Add your keys

.env
AUTHBOUND_SECRET_KEY=sk_test_...
AUTHBOUND_PUBLISHABLE_KEY=pk_test_...
AUTHBOUND_SESSION_SECRET=...
AUTHBOUND_WEBHOOK_SECRET=whsec_...
Generate the session secret with openssl rand -base64 32. Copy the webhook secret from the webhook endpoint you add in the dashboard.
3

Mount the app

server.ts
import { serve } from "@hono/node-server";
import { Hono } from "hono";
import { createAuthboundApp } from "@authbound/server/hono";

const app = new Hono();

app.route(
  "/api/authbound",
  createAuthboundApp({
    apiKey: process.env.AUTHBOUND_SECRET_KEY!,
    publishableKey: process.env.AUTHBOUND_PUBLISHABLE_KEY!,
    secret: process.env.AUTHBOUND_SESSION_SECRET!,
    webhookSecret: process.env.AUTHBOUND_WEBHOOK_SECRET!,
    routes: {
      protected: [],
      verify: "/verify",
      callback: "/api/authbound/callback",
    },
  })
);

serve(app);

Routes the app adds

RouteWhat it does
POST /api/authbound/verificationStarts a verification and returns the wallet handoff to the browser.
POST /api/authbound/sessionSets the session cookie after a successful verification.
POST /api/authbound/callbackReceives webhooks. Add this URL as a webhook endpoint in the dashboard.
GET /api/authbound/statusReads the session cookie.
DELETE /api/authboundSigns the user out by clearing the session cookie.

Next steps